I am trying to understand what the impact is when using the console for error reporting, and what might be the best method for obtaining run-time debug info. For example many embedded boards use an RS232 serial console, and the default baud on this is usu no more than 19200. If the console is used for debug messages, it would seem that there would be some negative impact on application performance, and/or lost messages particularly if the buffers can't keep up.
On my uClinux dev platform I can also telnet in to get a console. The connection is potentially much faster, but that slow serial console is still being serviced whether or not a cable is attached to it.
Now maybe the drivers controlling the serial console are written in such a way that they don't impose a big hit even when overflowing (no blocking), and they don't slow down other connections (telnet). But if there is any hit, it would seem to be a good idea to explicitly disable the serial console and rely only the telnet connection. A further improvement might be to have everything go directly to a log file instead of to the console.
Does redirection take care of this?
Comments?
BTW, I don't see anything in the rc or inittab files that would allow me to shut down the serial console, but its probably there somewhere.