Skip to content

Logging

Logging#

DEHB uses loguru for logging and will log both to an output file dehb.log inside of the specified output_path and to stdout. In order to customize the log level, you can pass a log_level to the kwargs of DEHB. These log levels directly represent the different log levels in loguru. For more information on the different log levels, checkout their website. An example for the initialization of DEHB using a log level of "WARNING" is presented in the following:

dehb = DEHB(
    f=objective_function,
    cs=config_space,
    dimensions=2,
    min_fidelity=3,
    max_fidelity=27,
    eta=3,
    output_path="./log_example",
    log_level="WARNING",
)