redback.utils.setup_logger
- redback.utils.setup_logger(outdir='.', label=None, log_level='INFO')[source]
Setup logging output: call at the start of the script to use
- Parameters:
outdir (str) – If supplied, write the logging output to outdir/label.log
label (str) – If supplied, write the logging output to outdir/label.log
log_level – [‘debug’, ‘info’, ‘warning’] Either a string from the list above, or an integer as specified in https://docs.python.org/2/library/logging.html#logging-levels (Default value = ‘INFO’)