reVeal.log.init_logger#

init_logger(name, log_path=None, verbose=False, node=False)[source]#

Inti

Parameters:
  • name (str) – Job name; name of log file.

  • log_path (str, optional) – If specified, logs will be saved to an output file as well as emitted stdout. This can be an file path, in which case outputs will be saved to the specified file, or a directory path, in which case the outputs will be saved to a log file in the specified directory, with a name of the format “<name>.log”. Default is None, which does not add a FileHandler.

  • verbose (bool, optional) – Option to turn on debug logging.

  • node (bool, optional) – Flag for whether this is a node-level logger. If this is a node logger, and verbose = False, log_path will be ignored and logs will only be issued to stdout.

Returns:

logger (logging.Logger) – Logger instance that was initialized