Skip to main content

utils.logger.logging_utils

Logging util module

getlogger#

def getlogger(name, log_level='INFO')

This method returns a logger object to be used by the calling class. The logger object returned has the following format for all the logs: '%(asctime)s:%(levelname)s : %(name)s : %(lineno)d : %(message)s'

Arguments:

  • name str - Directory under which to search for checkpointed files.
  • file_prefix str - Prefix to match for when searching for candidate files.
  • file_ext str, optional - File extension to consider when searching.

Returns:

  • logger object - logger object to use for logging.