CustomTimedRotatingFileHandler¶
Description
-
class
lab_utils.custom_logging.
CustomTimedRotatingFileHandler
(path: str, basename: str, extension: str = '.log')[source]¶ Variation of
TimedRotatingFileHandler
. The handler will produce daily log files to a given directory, appending the date to a given base name.Attributes
Complete file base name where date will be appended, without extension.
Log file extension.
Parent directory to save all logs.
Next rollover time
File stream
Methods
Calls the parent constructor and creates the logging directory, if it does not exist.
Rotates log files on daily basis.