event.handler.logging¶
Logging-based event handler.
Module Contents¶
Classes¶
Event handler that sends events to Python logging system. |
- class event.handler.logging.LoggingHandler(logger_name: str = '', level: int = logging.DEBUG)¶
Bases:
e3.event.EventHandlerEvent handler that sends events to Python logging system.
- send_event(event: e3.event.Event) bool¶
Send event to logger.
- Parameters:
event – event to send
- classmethod decode_config(config_str: str) dict[str, str | int]¶
Decode configuration string.
- Parameters:
config_str – configuration string
- encode_config() str¶
Encode configuration to string representation.