DBHandler class for logging?
no.email at please.post
Tue Sep 22 23:48:09 CEST 2009
In <7hsukcF2tqhtvU1 at mid.uni-berlin.de> "Diez B. Roggisch" <deets at nospam.web.de> writes:
>> I've come across mentions of a mythical class of logging handlers
>> called DBHandler, but I can't find it anywhere.
>> Could someone please point me in the right direction?
>> (FWIW, I'm looking for ways to log messages to PostgreSQL RDBMS.)
>I'm not aware such a thing is part of the standard logging package. But
>it's trivial to write one, we did so ourselves. Depending on your
>version of python, you need to inject the class into the
>logging.handlers-module to make it loadable by the logfile-format.
I'm sorry for my ignorance, but what exactly do you mean by
"injecting" the new class into the "logging.handlers-module"? And
what is "the logfile-format"?
More information about the Python-list