Re: how to use a customized logging formatter class

2012-10-21 Thread czamb...@gmail.com
As it happens I was looking into this yesterday because my request object includes a couple of attributes that I would like to see listed in the string representation of the request object. Your LOGGING settings needs to have a fomatter entry that looks something like: 'formatters': { 'my_f

how to use a customized logging formatter class

2012-10-20 Thread Ali
I have written this custom formatter which inherits from logging.Formatter, how can I configure logging settings so that I can use this for a logger. I see the example in docs where I can update the formatter string but dont know how to link a class to do that. class UniqueRequestIdFormatter(lo