Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Custom handler for logging

Reply
Thread Tools

Custom handler for logging

 
 
Luigi Paioro
Guest
Posts: n/a
 
      09-03-2008
Dear all,

concerning the logging module, I have written a new Handler which stores
the logging messages in an SQLite database. It works well, but when I
try to use it exploiting a configuration file I have a problem since the
"class" entry does not accept a class which is not within the logging
name-space, while the class I implemented is coded in my personal module
(thus another name-space).

Is there a workaround to allow the usage of custom handlers?

Thanks in advance.

Luigi
 
Reply With Quote
 
 
 
 
Peter Otten
Guest
Posts: n/a
 
      09-03-2008
Luigi Paioro wrote:

> concerning the logging module, I have written a new Handler which stores
> the logging messages in an SQLite database. It works well, but when I
> try to use it exploiting a configuration file I have a problem since the
> "class" entry does not accept a class which is not within the logging
> name-space, while the class I implemented is coded in my personal module
> (thus another name-space).
>
> Is there a workaround to allow the usage of custom handlers?


Maybe

http://mail.python.org/pipermail/pyt...er/232762.html

Peter
 
Reply With Quote
 
 
 
 
Luigi Paioro
Guest
Posts: n/a
 
      09-03-2008
Thanks, it works perfectly!

Luigi

Peter Otten ha scritto:
> Luigi Paioro wrote:
>
>> concerning the logging module, I have written a new Handler which stores
>> the logging messages in an SQLite database. It works well, but when I
>> try to use it exploiting a configuration file I have a problem since the
>> "class" entry does not accept a class which is not within the logging
>> name-space, while the class I implemented is coded in my personal module
>> (thus another name-space).
>>
>> Is there a workaround to allow the usage of custom handlers?

>
> Maybe
>
> http://mail.python.org/pipermail/pyt...er/232762.html
>
> Peter

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom log handler and logging.config.fileConfig() Lowell Alleman Python 3 05-29-2008 05:28 PM
Removing default logging handler (causes duplicate logging) Gal Aviel Python 1 03-04-2008 03:35 PM
python logging module and custom handler specified in config file Frank Aune Python 4 10-19-2007 11:22 AM
Encrypt custom web.config section / cannot load custom handler? MichaelS ASP .Net Security 0 11-22-2006 04:11 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM



Advertisments