Python logging components
- Loggers expose the interface that application code directly uses.
- Handlers send the log records (created by loggers) to the appropriate destination.
- Filters provide a finer grained facility for determining which log records to output.
- Formatters specify the layout of log records in the final output.
- LogRecord (Pay attention to its attributes)
Python logging modules
- logging.Handler (base handler)
- logging.handlers (Other useful handlers, say RotatingFileHandler)
- logging.Filter
- logging.Formatter
- logging.config (file, dict etc based config)
17万+

被折叠的 条评论
为什么被折叠?



