Undocumented
Function | configure_logging |
Initialize logging defaults for Scrapy. |
Constant | DEFAULT_LOGGING |
Undocumented |
Variable | logger |
Undocumented |
Class | LogCounterHandler |
Record log levels count into a crawler stats |
Class | StreamLogger |
Fake file-like stream object that redirects writes to a logger instance |
Class | TopLevelFormatter |
Keep only top level loggers's name (direct children from root) from records. |
Function | _get_handler |
Return a log handler object according to settings |
Function | failure_to_exc_info |
Extract exc_info from Failure instances |
Function | get_scrapy_root_handler |
Undocumented |
Function | install_scrapy_root_handler |
Undocumented |
Function | log_scrapy_info |
Undocumented |
Function | logformatter_adapter |
Helper that takes the dictionary output from the methods in LogFormatter and adapts it into a tuple of positional arguments for logger.log calls, handling backward compatibility as well. |
Variable | _scrapy_root_handler |
Undocumented |
Initialize logging defaults for Scrapy.
This function does:
When install_root_handler is True (default), this function also creates a handler for the root logger according to given settings (see :ref:`topics-logging-settings`). You can override default options using settings argument. When settings is empty or None, defaults are used.
Parameters | |
settings:dict, ~scrapy.settings.Settings object or None | settings used to create and configure a handler for the root logger (default: None). |
install_root_handler:bool | whether to install root logging handler (default: True) |
dict
=
Undocumented
Value |
|