|
From: Kevin A. <al...@se...> - 2001-12-14 00:31:32
|
Most of the time, I want to be able to have the log output just go to the console (sys.stdout). This should also take care of having logging output go to the shell if the "Redirect stdout to Shell" option is enabled. Yes I know Unix folks would probably just to a tail on the log file, but that isn't available for most Windows users. We could have "stdout" or "stderr" treated as a special filename for the log in which case output is sent to sys.stdout instead of some other file. Seems a bit unclean. Another possibility is to add an explicit flag to route log messages to stdout or stderr... This option would need to be added to the config options. Other suggestions? Remember that one of the goals is that I want to avoid peppering the source (especially samples) with print statements, but just use log instead and then the log statements can be left in the code without causing much overhead or outputting unwanted messages to a file or console if logging isn't enabled. ka |