autointent.configs.LoggingConfig#

class autointent.configs.LoggingConfig#

Configuration for the logging.

run_name: str | None = None#

Name of the run. If None, a random name will be generated

dirpath: pathlib.Path | None = None#

Path to the directory where the logs will be saved. If None, the logs will be saved in the current working directory

dump_dir: pathlib.Path | None = None#

Path to the directory where the modules will be dumped. If None, the modules will not be dumped

dump_modules: bool = False#

Whether to dump the modules or not

clear_ram: bool = False#

Whether to clear the RAM after dumping the modules

report_to: list[str] | None = None#

List of callbacks to report to. If None, no callbacks will be used

__post_init__()#

Define the run name, directory path and dump directory.

Return type:

None

define_run_name()#

Define the run name. If None, a random name will be generated.

Return type:

None

define_dirpath()#

Define the directory path. If None, the logs will be saved in the current working directory.

Return type:

None

get_dirpath()#

Get the directory path.

Return type:

pathlib.Path

get_run_name()#

Get the run name.

Return type:

str

define_dump_dir()#

Define the dump directory. If None, the modules will not be dumped.

Return type:

None