logging and daemons
Fernando M. Maresca
fmaresca at gmail.com
Mon Feb 16 08:02:06 EST 2009
More information about the Python-list mailing list
Mon Feb 16 08:02:06 EST 2009
- Previous message (by thread): replace ftp by local copy
- Next message (by thread): logging and daemons
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello. I'm in the process of replacing a custom logger class in one of my apps that has several daemons. In the last step of daemonizing a program, after closing fds, stderr and stdout are redirected to the logfile of the program. Now, I'm trying to use TimedRotatingFileHandler as the only channel when the programs run in daemon mode. My problem is: I can't see a goog way to redirect stderr/stdout both to the logger. Note that I don't have any print statements in any of my code, but I can't be sure about all the modules I'm importing, and I like to get any uncached exception info that may go to stderr/stdout to show up in the logfiles. Any ideas? Thanks a lot, -- Fernando -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 204 bytes Desc: Digital signature URL: <http://mail.python.org/pipermail/python-list/attachments/20090216/da6b4791/attachment.sig>
- Previous message (by thread): replace ftp by local copy
- Next message (by thread): logging and daemons
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list