event.handler.file¶
File-based event handler.
Module Contents¶
Classes¶
Event handler that writes events to JSON files. |
- class event.handler.file.FileHandler(log_dir: str)¶
Bases:
e3.event.EventHandlerEvent handler that writes events to JSON files.
- send_event(event: e3.event.Event) bool¶
Send event to file.
- Parameters:
event – event to send
- classmethod decode_config(config_str: str) dict[str, str]¶
Decode configuration string.
- Parameters:
config_str – configuration string
- encode_config() str¶
Encode configuration to string representation.