Custom handler for logging

L

Luigi Paioro

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
 
P

Peter Otten

Luigi said:
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/python-list/2003-October/232762.html

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top