imod.logging.config.configure#
- imod.logging.config.configure(logger_type: LoggerType, log_level: LogLevel = LogLevel.WARNING, add_default_stream_handler: bool = True, add_default_file_handler: bool = False) None [source]#
Setup the logging framework and assign it a log level. To add a default stream- and/or file-handler you can use the
add_default_stream_handler
oradd_default_file_handler
flags. If a default file-handler is added then the log output will be written to the imod-python.log file- Parameters:
logger_type (LoggerType) – The logging framework to be used.
log_level (LogLevel) – The log level to be set.
add_default_stream_handler (bool) – A flag that specifies if a default stream-handler should be added. True by default.
add_default_file_handler (bool) – A flag that specifies if a default filehandler should be added. The log will be written to imod-python.log. False by default.