Specifying a custom formatter in logging config file

Gardner Pomper gardner at networknow.org
Thu Sep 7 19:29:54 EDT 2006


I have been wanting to have my logging messages indented based on the level
in the call stack. I found a recipe online for defining such a
formatter (Stack-based
indentation of formatted
logging<http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/412603>)
but I can't figure out how to specify that formatter in the file that I read
using logging.fileConfig. Can someone point me to an example of how to do
this?

Thanks!

- Gardner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060907/96b7ef22/attachment.html>


More information about the Python-list mailing list