|  | Custom handler for logging |  | |
| | | Luigi Paioro |  |
| Posted: Wed Sep 03, 2008 10:31 am Post subject: Custom handler for logging |  |
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 |
| |
| | | Peter Otten |  |
| Posted: Wed Sep 03, 2008 11:26 am Post subject: Re: Custom handler for logging |  |
Luigi Paioro wrote:
| Quote: | 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
LINK
Peter |
| |
| | | Luigi Paioro |  |
| Posted: Wed Sep 03, 2008 11:54 am Post subject: Re: Custom handler for logging |  |
Thanks, it works perfectly!
Luigi
Peter Otten ha scritto:
| Quote: | 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
LINK
Peter |
|
| |
|
|