Re: [Tutor] Extending logging module

2007-08-09 Thread jay
Nice! I will have to test this On 8/9/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > > jay wrote: > > I have a working solution for this, based largely on what Kent posted. > > Thought I would post it for others in case your either curious, or need > > to do this in the future. There are probably

Re: [Tutor] Extending logging module

2007-08-09 Thread Kent Johnson
jay wrote: > I have a working solution for this, based largely on what Kent posted. > Thought I would post it for others in case your either curious, or need > to do this in the future. There are probably other ways to do this. > > It works quite nicely, though its a lot of repeated > code if

Re: [Tutor] Extending logging module

2007-08-09 Thread Kent Johnson
jay wrote: > I have a working solution for this, based largely on what Kent posted. > Thought I would post it for others in case your either curious, or need > to do this in the future. There are probably other ways to do this. > > To add a new level NOTICE for logging to syslog > > # Cha

Re: [Tutor] Extending logging module

2007-08-09 Thread jay
I have a working solution for this, based largely on what Kent posted. Thought I would post it for others in case your either curious, or need to do this in the future. There are probably other ways to do this. To add a new level NOTICE for logging to syslog # Change the default levels to in

Re: [Tutor] Extending logging module

2007-08-09 Thread jay
Kent, Thanks for the suggestion. If will look more into your suggestions, and also shoot a post over to comp.lang.python. Jay On 8/9/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > > jay wrote: > > Hello, > > > > I've been using the python logging module a lot lately, and I've come > > across an

Re: [Tutor] Extending logging module

2007-08-09 Thread Kent Johnson
jay wrote: > Hello, > > I've been using the python logging module a lot lately, and I've come > across an instance where I need some new levels. Specifically, python > does not include ALERT and NOTICE in the default set of logging levels. > I am wondering how trivial it would be to extend th

[Tutor] Extending logging module

2007-08-09 Thread jay
Hello, I've been using the python logging module a lot lately, and I've come across an instance where I need some new levels. Specifically, python does not include ALERT and NOTICE in the default set of logging levels. I am wondering how trivial it would be to extend the logging module to includ