Commits

Sylvain Hellegouarch  committed b100ea8

Fixed missing access log for global configuration

  • Participants
  • Parent commits 0343e41
  • Branches cherrypy

Comments (0)

Files changed (2)

 _error_log = _logging.getLogger("cherrypy.error")
 _error_log.setLevel(_logging.DEBUG)
 
+_access_log = _logging.getLogger("cherrypy.access")
+_access_log.setLevel(_logging.INFO)
+
 def _log_message(msg, context = '', severity = _logging.DEBUG):
     """Default method for logging messages (error log).
     
     globalconf.update(conf)
     
     _configure_builtin_logging(globalconf, cherrypy._error_log)
+    _configure_builtin_logging(globalconf, cherrypy._access_log, "log_access_file")
 
 def _add_builtin_screen_handler(log):
     import sys