FileHandlers Module¶
This module contains classes and functions related to file handlers in the EventManager.
- class EventManager.filehandlers.LogHandler(config_path: str)[source]¶
Bases:
objectThe LogHandler class is responsible for managing the logging configuration and log files.
- check_if_internal_log_file_exists() bool[source]¶
Check if the internal log file exists.
- Returns:
True if the internal log file exists, False otherwise.
- check_if_log_file_exists()[source]¶
Check if the log file exists.
- Returns:
True if the log file exists, False otherwise.
- property config: Config¶
- create_internal_log_file()[source]¶
Creates a new internal log file with the specified file name and file extension.
- property current_file_name: str¶
- property current_internal_file_name: str¶
- property internal_event_manager¶
- EventManager.filehandlers.default_processors() list[ProcessorEntry][source]¶
Create a list of default processors for the EventManager. :return: A list containing a single ProcessorEntry instance.
- EventManager.filehandlers.default_outputs() list[OutputEntry][source]¶
Create a list of default outputs for the EventManager. :return: A list containing a single OutputEntry instance.