On 5/21/07, aaaron <[EMAIL PROTECTED]> wrote:
>
>
> is there a simple way to configure my pylons app to write errors to
> the log along with a timestamp? i've got the who, what, and where...
> just need the when. :)


This should help:

    logging.basicConfig(filename=logfile, mode='at+',
         level=logging.DEBUG,
         format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
         datefmt='%Y-%b-%d %H:%M:%S')

Max.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to