Skip to content

log_config

init_logger(log_level='INFO', log_file='log/log.txt')

Initialize the logger with the specified log level and log file.

Parameters:

Name Type Description Default
log_level str

The log level (DEBUG, INFO, WARNING, ERROR).

'INFO'
log_file str

The path to the log file.

'log/log.txt'