addRotFileHandler¶
- lsst.ts.MTAOS.addRotFileHandler(log, filePath, debugLevel, maxBytes=1000000.0, backupCount=5)¶
Add a rotating file handler to a logger.
Note: The input log object will be updated directly.
- Parameters
- loglogging.Logger
Logger.
- filePathpathlib.PosixPath
File path.
- debugLevelint or str
Logging level of file handler.
- maxBytesint, optional
Maximum file size in bytes for each file. (the default is 1e6.)
- backupCountint, optional
Number of log files to retain. (the default is 5.)
- Returns
- fileHandlerlogging.RotatingFileHandler
The file handler added.