mangadap.util.log module

Logging routines.


Copyright © 2019, SDSS-IV/MaNGA Pipeline Group

mangadap.util.log.init_DAP_logging(log, simple_warnings=True, append=False, keep_fits_warnings=False)[source]

Initialize the logging preferences for the DAP.

  • log (str) – File with log output.

  • simple_warnings (bool, optional) – Shorten warning messages.

  • append (bool, optional) – Append new log messages to existing log file; if False, file is overwritten.

  • keep_fits_warning (bool, optional) – Flag to not ignore FITSFixedWarning messages.


Use a file with the logging configuration. See:

mangadap.util.log.log_output(loggers, v, lvl, message)[source]

Write message to the log.

  • loggers (logging.Logger) – Objects collecting the log for a given run of the DAP.

  • v (int) – Verbosity level of message.

  • lvl (logging.level) – Logging level

  • message (str) – Message to log.

mangadap.util.log.module_logging(name, verbose)[source]

Return a number of logging.Logger objects, one for each verbosity level.

mangadap.util.log.short_warning(message, category, filename, lineno, file=None, line=None)[source]

Return the format for a short warning message.