dynsight.logs.Logger¶
- class dynsight.logs.Logger(*, auto_recording=False)[source]¶
Create and save human-readible log.
Methods
Clears the current log history and registered datasets.
Adjusts the runtime configuration of the logger.
Exports all recorded datasets into a ZIP archive.
Retrieves the current log history as a string.
Records an informational message to the log.
Record and save a dataset associated with an Insight instance.
Saves the current log history to a text file.
Records an informational warning message to the log.
- Parameters:
auto_recording (bool)
- configure(*, auto_recording=False)[source]¶
Adjusts the runtime configuration of the logger.
- Parameters:
auto_recording (bool) – Enables or disables automatic dataset recording. When set to True, every processed dataset will be automatically saved into a temporary archive. When False, datasets must be explicitly registered via register_data().
- Return type:
None
- extract_datasets(output_dir=PosixPath('analysis_archive'))[source]¶
Exports all recorded datasets into a ZIP archive.
- log(msg)[source]¶
Records an informational message to the log.
- Parameters:
msg (str) – The message to record.
- Return type:
None
- record_data(insight)[source]¶
Record and save a dataset associated with an Insight instance.
- Parameters:
insight (Insight) – the Insight to be registered.
- Return type:
None