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.
- Parameters
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.
Todo
Use a file with the logging configuration. See: https://docs.python.org/3.5/howto/logging.html#handler-basic
- mangadap.util.log.log_output(loggers, v, lvl, message)[source]¶
Write message to the log.
- Parameters
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.