web.log

Package web :: Module log |
[hide private]
[frames] | no frames]

# Source Code for Module web.log

     1  import sys, logging
     2  from wsgilog import WsgiLog
     3  import config
     4
     5 -class Log(WsgiLog):
     6 -    def __init__(self, application):
     7          WsgiLog.__init__(
     8              self,
     9              application,
    10              tostream = True, # Log to stdout too
    11              tofile = True,
    12              toprint = True,
    13              file = config.log_file,
    14              interval = config.log_interval,
    15              backups = config.log_backups
    16          )
    17