Logging Date/Time Format

Robert Rawlins robert.rawlins at thinkbluemedia.co.uk
Mon Mar 10 06:49:37 EDT 2008


Hello Guys,

 

I'm using the python logging module, however I'm not happy with the current
date/time format which is used to write the timestamp into the log file. I
need the logger to write the stamp without the milliseconds appended too it.
This is because I use a 3rd party application to parse the logs at a later
date as a CSV and the comma separating the milliseconds throws things out.

 

I've been looking through the API documentation but couldn't see any decent
method for doing so.

 

Any ideas?

 

Robert

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080310/189a5170/attachment.html>


More information about the Python-list mailing list