How can one change the formatting of output from the logging
module in Google App Engine?
I\'ve tried, e.g.:
log_format = \"* %(asctim
Here is one way you can change the logging format without duplicating output:
# directly access the default handler and set its format directly
logging.getLogger().handlers[0].setFormatter(fr)
This is a bit of a hack because you have to directly access the handlers
list stored in the root logger. The problem is GAE automatically uses logging
before your code is ever run - this creates a default handler. Unfortunately, I don't see how you can get a reference to this handler without directly accessing the handlers
list as above.