bilby.core.utils.log.setup_logger
- bilby.core.utils.log.setup_logger(outdir='.', label=None, log_level='INFO', print_version=False)[source]
Setup logging output: call at the start of the script to use
- Parameters:
- outdir, label: str
If supplied, write the logging output to outdir/label.log
- log_level: str, optional
[‘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
- print_version: bool
If true, print version information