On 19 Oct, 12:04, Frank Aune <[EMAIL PROTECTED]> wrote:
> On Thursday 18 October 2007 19:26:59 Vinay Sajip wrote:
>
> What if you want to datestamp filenames for filehandlers, say with todays date
> for example?
>
> [handler_file]
> class=FileHandler
> level=NOTSET
> formatter=normal
> args=('filen
On Thursday 18 October 2007 19:26:59 Vinay Sajip wrote:
> The values in the config file are interpreted in the context of the
> logging module's namespace. Hence, one way of achieving what you want
> is putting any custom handlers in
> a module of your own, and providing a binding in the logging mo
On Thursday 18 October 2007 19:26:59 Vinay Sajip wrote:
> The same technique applies to the arguments passed to the constructor.
>
> Hope this helps,
>
Thank you! This seems like exactly what I was looking for.
Very impressive logging framework btw - I use it whenever I can =)
Cheers,
Frank
--
On 15 Oct, 15:15, Frank Aune <[EMAIL PROTECTED]> wrote:
> What I'm wondering, is if its possible to specify the database handler in a
> config file like:
>
> [handler_database]
> class=DBHandler
> level=DEBUG
> formatter=database
> args=('localhost', uid='root')
>
> I've seen the log_test14.py exam
Hello,
I've been playing with the python logging module lately, and I manage to log
to both stderr and MySQL database.
What I'm wondering, is if its possible to specify the database handler in a
config file like:
[handler_database]
class=DBHandler
level=DEBUG
formatter=database
args=('localho