ogstools.logparser.log_file_handler module#
- class ogstools.logparser.log_file_handler.LogFileHandler[source]#
Bases:
FileSystemEventHandler- Parameters:
- Status:
The status of the simulation (e.g. current time step).
- Stop_callback:
A callback function to stop the simulation.
- Line_limit:
The number of lines to read before stopping the simulation. 0 means no limit.
- __init__(file_name, queue, status, stop_callback, line_limit=0)[source]#
- Parameters:
- Status:
The status of the simulation (e.g. current time step).
- Stop_callback:
A callback function to stop the simulation.
- Line_limit:
The number of lines to read before stopping the simulation. 0 means no limit.
- on_created(event)[source]#
Called when a file or directory is created.
- Parameters:
event (
DirCreatedEventorFileCreatedEvent) – Event representing file/directory creation.- Return type: