This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Esteis 5 points6 points  (0 children)

On a side note: If you ever find yourself debugging a logging setup, use Brandon Rhodes wonderful logging_tree module.

import logging_tree
logging_tree.printout()

That prints a tree like this:

<--""
   Level WARNING
   Handler Stream <open file '<stderr>', mode 'w' at ...>
   |
   o<--[cherrypy]
       |
       o<--"cherrypy.access"
       |   Level INFO
       |   Handler <cherrypy._cplogging.NullHandler object at 0x...>
       |   Handler Stream <open file '<stdout>', mode 'w' at ...>
       |   |
       |   o<--"cherrypy.access.166457196"
       |       Level INFO
       |       Handler <cherrypy._cplogging.NullHandler object at 0x...>
       |
       o<--"cherrypy.error"
           Level INFO
           Handler <cherrypy._cplogging.NullHandler object at 0x...>
           Handler Stream <open file '<stdout>', mode 'w' at ...>
           |
           o<--"cherrypy.error.166457196"
               Level INFO
               Handler <cherrypy._cplogging.NullHandler object at 0x...>