Namespaces | |
| const | |
| helpers | |
| websocket_api | |
Functions | |
| None | _add_log_filter (logging.Logger logger, list[re.Pattern] patterns) |
| type[logging.Logger] | _get_logger_class (dict[str, int] hass_overrides) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
Variables | |
| _VALID_LOG_LEVEL = vol.All(vol.Upper, vol.In(LOGSEVERITY), LOGSEVERITY.__getitem__) | |
| CONFIG_SCHEMA | |
| SERVICE_SET_DEFAULT_LEVEL_SCHEMA = vol.Schema({ATTR_LEVEL: _VALID_LOG_LEVEL}) | |
| SERVICE_SET_LEVEL_SCHEMA = vol.Schema({cv.string: _VALID_LOG_LEVEL}) | |
Support for setting the level of logging for components.
|
private |
Add a Filter to the logger based on a regexp of the filter_str.
Definition at line 104 of file __init__.py.
|
private |
Create a logger subclass. logging.setLoggerClass checks if it is a subclass of Logger and so we cannot use partial to inject hass_overrides.
Definition at line 113 of file __init__.py.
| bool homeassistant.components.logger.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up the logger component.
Definition at line 52 of file __init__.py.
|
private |
Definition at line 33 of file __init__.py.
| homeassistant.components.logger.CONFIG_SCHEMA |
Definition at line 38 of file __init__.py.
| homeassistant.components.logger.SERVICE_SET_DEFAULT_LEVEL_SCHEMA = vol.Schema({ATTR_LEVEL: _VALID_LOG_LEVEL}) |
Definition at line 35 of file __init__.py.
| homeassistant.components.logger.SERVICE_SET_LEVEL_SCHEMA = vol.Schema({cv.string: _VALID_LOG_LEVEL}) |
Definition at line 36 of file __init__.py.