Re: How to log only one level to a FileHandler using python logging module.

2006-05-16 Thread zacherates
Try looking into logging.Filters: http://docs.python.org/lib/node358.html An example: import logging class InfoFilter(logging.Filter): def filter(self, record): return record.levelno == 20 if __name__ == "__main__": logger = logging.getLogger() hdlr = log

How to log only one level to a FileHandler using python logging module.

2006-05-16 Thread fuzzylollipop
I want a FileHandler to only log a single level say for example logging.INFO, and nothing else. do I need to create a custom Handler for this or is this doable with some magic that is not documeneted somewhere? -- http://mail.python.org/mailman/listinfo/python-list