On 1 Jun, 13:00, Álvaro Nieto <[EMAIL PROTECTED]> wrote:
>     How could I define a log file with datetime in his name?. Now the
> name
>     for log file is './Logs/cdmto.log' and I'd like it would be './
> Logs/cdmto_20070601.log',
>     for example.
>

You can't do this just in the configuration - TimedRotatingFileHandler
automatically works out the filename in a predetermined manner when
doing rollover (dependent on whether it's doing rollovers daily,
hourly or whatever period). If you need more specific handling, you'll
need to write a subclass of TimedRotatingFileHandler which does what
you need.

Regards,

Vinay Sajip

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to