sorcha.utilities.sorchaGetLogger
Functions
|
Initialises log and error files. |
Module Contents
- sorchaGetLogger(log_location, log_stem, log_format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s ', log_name='', log_file_info='sorcha.log', log_file_error='sorcha.err')[source]
Initialises log and error files.
- Parameters:
log_location (string) -- Filepath to directory in which to save logs.
log_stem (string) -- String output stem used to prefix all Sorcha outputs.
log_format (string, default="%(asctime)s %(name)-12s %(levelname)-8s %(message)s ") -- Format for log filename.
log_name (string, default="") -- Name of log.
log_file_info (string, default="sorcha.log") -- Suffix and extension with which to save info log.
log_file_error (string, optional, default="sorcha.err") -- Suffix and extension with which to save error log.
- Returns:
log -- Log object.
- Return type:
logging object