Logging to different addressees
andreas.mock at web.de
Tue Jul 15 14:27:33 CEST 2008
I need a recommendation. I would to like to use the logging module to
create log messages the following way:
a) Every log message does go to a admin sink.
b) The logging of special messages should go to the admin sink AND to
a sink specifically for
a certain addressee.
c) I don't want to write the log message to two different loggers for
that purpose. I would like to do it this way:
common_logger.log('bla') -> message to admin sink
certain_logger.log('something' -> message to admin sink and addressee-
d) Filtering and debug level should work as expected.
I could I achieve this in a elegant way?
More information about the Python-list