Re: create a log level for python logging module

2009-03-31 Thread dj
On Mar 31, 4:01 pm, MRAB wrote: > dj wrote: > > On Mar 31, 12:58 pm, MRAB wrote: > >> dj wrote: > >>> On Mar 30, 4:18 pm, Vinay Sajip wrote: > On Mar 30, 4:13 pm, dj wrote: > > I am trying to create a log level called userinfo for the > > pythonlogging. I read the source code and

Re: create a log level for python logging module

2009-03-31 Thread MRAB
dj wrote: On Mar 31, 12:58 pm, MRAB wrote: dj wrote: On Mar 30, 4:18 pm, Vinay Sajip wrote: On Mar 30, 4:13 pm, dj wrote: I am trying to create a log level called userinfo for the pythonlogging. I read the source code and tried to register the level to theloggingnamespace with the follow

Re: create a log level for python logging module

2009-03-31 Thread dj
On Mar 31, 12:58 pm, MRAB wrote: > dj wrote: > > On Mar 30, 4:18 pm, Vinay Sajip wrote: > >> On Mar 30, 4:13 pm, dj wrote: > > >>> I am trying to create a log level called userinfo for the pythonlogging. > >>> I read the source code and tried to register the level to > >>> theloggingnamespace

Re: create a log level for python logging module

2009-03-31 Thread MRAB
dj wrote: On Mar 30, 4:18 pm, Vinay Sajip wrote: On Mar 30, 4:13 pm, dj wrote: I am trying to create a log level called userinfo for the pythonlogging. I read the source code and tried to register the level to theloggingnamespace with the following source: fromloggingimport

Re: create a log level for python logging module

2009-03-31 Thread dj
On Mar 30, 4:18 pm, Vinay Sajip wrote: > On Mar 30, 4:13 pm, dj wrote: > > > > > I am trying to create a log level called userinfo for the pythonlogging. I > > read the source code and tried to register the level to theloggingnamespace > > with the following source: > > >              fromloggi

Re: create a log level for python logging module

2009-03-30 Thread Vinay Sajip
On Mar 30, 4:13 pm, dj wrote: > I am trying to create a log level called userinfo for the pythonlogging. I > read the source code and tried to register the level to theloggingnamespace > with the following source: > > fromloggingimport Logger > > # create th

create a log level for python logging module

2009-03-30 Thread dj
I am trying to create a log level called userinfo for the python logging. I read the source code and tried to register the level to the logging namespace with the following source: from logging import Logger # create the custom log level