Logging | Django documentation | Django

Home Download Documentation Weblog Community Code END Header Django documentation 1.3 1.4 1.5 1.6 dev Documentation version: 1.7 ¶ ¶ Django uses Python’s builtin logging module to perform system logging. The usage of this module is discussed in detail in Python’s own documentation. However, if you’ve never used Python’s logging framework (or even if you have), here’s a quick primer. ¶ A Python logging configuration consists of four parts: Loggers Handlers Filters Formatters ¶ A logger is the entry point into the logging system. Each logger is a named bucket to which messages can be written for processing. A logger is configured to have a log level . This log level describes the severity of the messages that the logger will handle. Python defines the following log levels: DEBUG : Low level system information for debugging purposes INFO : General s...

Linked on 2014-10-28 23:35:56 | Similar Links