> 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.

thanks max...

just one clarification-- will configuring logging in the pylons
logging module affect what pylons' writes to environ['wsgi.errors']? i
want a timestamp along with the standard stack trace, cgi/wsgi/other
vars, that are currently written. i did a quick test (added
logging.basicConfig to my environment.load_environment()) but that
didn't seem to work.

-aaron


--~--~---------~--~----~------------~-------~--~----~
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