durusmail: quixote-users: simple_server log to file?
*** PROBABLY SPAM *** simple_server log to file?
2005-03-08
2005-03-08
simple_server log to file?
2005-03-09
2005-03-09
2005-03-09
2005-03-09
2005-03-09
2005-03-09
2005-03-10
simple_server log to file?
Mario Ruggier
2005-03-09
On Mar 9, 2005, at 12:30 PM, David Binger wrote:
> The default  logger instance sets sys.stdout to be the same as
> the error log, which is sys.stderr by default.
> If you catch "2" in a file with "2>log", and you are using the default
> logger on your publisher, then I think the output of all print
> statements
> (executed after the publisher is created) will go to the file.

The print statements disappear here!  With whichever redirect I have
tried, including 2>log. Without the redirect, both the http log as well
as the prints appear in the terminal.

I am using the default logger. Could it be something coming form the
environment? What shall I poke at? I am using stock python 2.3 on OS X.
And bash is retained as default shell.

mario


reply