dbprocessing.DBlogging

Support for logging information from the dbprocessing chain.

Functions

change_logfile([logname])

Switch to a new log file

Attributes

dbprocessing.DBlogging.change_logfile(logname=None)[source]

Switch to a new log file

This implements switching default logging from one filename to another, usually used to indicate the mission being processed. The filename will always start with dbprocessing_ and include a date string for the day.

Parameters
lognamestr, default “log”

Name to include in full log filename.

dbprocessing.DBlogging.utctoday = '2022-02-10'

Current UTC date as YYYY-MM-DD (str)

dbprocessing.DBlogging.log_dir = '/home/jtniehof/dbprocessing_logs'

Directory to contain all dbprocessing log files (str)

dbprocessing.DBlogging.basename = 'dbprocessing_log'

Name of log file without date (str)

dbprocessing.DBlogging.LOG_FILENAME = '/home/jtniehof/dbprocessing_logs/dbprocessing_log.log.2022-02-10'

Full name of the log file (str)

dbprocessing.DBlogging.LEVELS = {'critical': 50, 'debug': 10, 'error': 40, 'info': 20, 'warning': 30}

Map name of logging level names to numbers (dict)


Release: 0.1.0 Doc generation date: Feb 10, 2022