otx.utils.logger#

Module for defining custom logger.

Functions

config_logger(log_file[, level])

A function that configures the logging system.

get_log_dir()

A function that retrieves the directory path of the log file.

otx.utils.logger.config_logger(log_file, level='WARNING')[source]#

A function that configures the logging system.

Parameters:
  • log_file – str, a string representing the path to the log file.

  • level – str, a string representing the log level. Default is “WARNING”.

Returns:

None

otx.utils.logger.get_log_dir()[source]#

A function that retrieves the directory path of the log file.

Returns:

str, a string representing the directory path of the log file.