adler.utilities.adler_logging
Functions
|
Sets up two logs for Adler: info, which logs everything, and error, which logs warnings and errors. |
Module Contents
- setup_adler_logging(log_location, log_format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s ', log_file_info='adler.log', log_file_error='adler.err')[source]
Sets up two logs for Adler: info, which logs everything, and error, which logs warnings and errors.
- Parameters:
log_location (string) – Filepath to directory in which to save logs.
log_format (string, optional) – Format for log filename. Default = “%(asctime)s %(name)-12s %(levelname)-8s %(message)s “
log_file_info (string, optional) – Name with which to save info log. Default = “adler.log”
log_file_error (string, optional) – Name with which to save error log. Default = “adler.err”
- Returns:
log – Log object.
- Return type:
logging object