Source

CherryPy / cherrypy / _cplogging.py

Author Commit Message Labels Comments Date
Robert Brewer
Fixed #1091 (log.screen = False has no effect in Python 3.2 when no log files are specified)
Robert Brewer
Bye bye, py2/3.
Robert Brewer
Some backports (mostly whitespace, really) from the python3 branch.
Robert Brewer
Even more doc work.
Robert Brewer
Docstring improvements
Robert Brewer
Some cross ports from the python3 branch, including two test fixes.
Robert Brewer
All internals now use cherrypy.serving.request/response instead of request/response for a speed boost.
Robert Brewer
Use new response.output_status for access log.
Lakin Wecker
as per a conversation with fumanchu - it seems that the error log is meant for application specific messages as well as errors. (strange, but apparently true). I should have read the comment on the error method.
Lakin Wecker
[2141] raised the default error log level from DEBUG to INFO. However, the log_traceback tool sets the default severity to DEBUG. This results in a default error log that does not include tracebacks. I think it's worthwhile to up the error log's default level to WARNING, and set the default for both cherrypy.log.error() and log_traceback() to ERROR.
Robert Brewer
It's silly to have a log sink run at the lowest level by default.
Robert Brewer
Fix for #866 (Error *and* access log printed to stderr).
Robert Brewer
Fix (partial?) for #852 (CherryPy always overrides user specified log levels).
Robert Brewer
Fix for #824 (_cplogging.LogManager.access method not handling unicode in login names properly). While I was at it, I made the access log template configurable, moved the log tests from test_core into test_logging, and added a new logtest module.
Robert Brewer
Doc tweaks and a missing 'rb'.
Robert Brewer
Audit of logging: 1. cherrypy.log now defaults to INFO. 2. Bus.log now takes a 'level=INFO' arg. 3. 'log' channel subscribers now must accept a 'level' arg. 4. Some bus plugin messages upgraded to WARN or ERROR. 5. Some CP core messages upgraded to ERROR. 6. log.screen move to stderr polished. See #747.
Robert Brewer
Silencing the no-handlers "warning" (stderr write!) in stdlib logging.
Robert Brewer
Fix for #747 (log.screen should send error log messages to stderr).
Robert Brewer
Fix for # 738 (Misspelled except statement shadows builtin KeyError exception).
Robert Brewer
Fix for #727 (no referer or ua in access log). Needs a backport.
Robert Brewer
New LogManager.reopen_files method for graceful restart. See #679.
Robert Brewer
Fix for #660 (Add a 'wsgi.errors' logging handler).
Robert Brewer
More doc updates.
Robert Brewer
A couple more speed tweaks.
Robert Brewer
Allow loggers to use a different logging root (e.g. "tg.error" instead of "cherrypy.error").
Robert Brewer
Global log.screen now True.
Robert Brewer
Logging cleanups: 1. Moved LogManager to new _cplogging module. 2. Apps now possess a 'log' attribute (a LogManager instance that includes both error and access) instead of separate error_log and access_log. 3. Fixed broken default error_log.