I want to name rotating log files as I want.
For example, if I use RotatingFileHandler, It separates log file when it reaches to specific file size naming
log file name + extension numbering
filename.log #first log file
filename.log.1 #rotating log file1
filename.log.2 #rotating log file2
09-01-12-20.log #first log file
09-01-12-43.log #rotating log file1
09-01-15-00.log #rotating log file2
RotatingFileHandler of python logging handler.
self.baseFilename value, the handler will use
self.baseFilename to create logFile.(when it creates file first or when rollover happens)
self.shouldRollover() method, It checks if the handler should rollover logfile or not.
If this method
return 1, it means rollover should happen or
By overriding them, I define when this handler makes rollover and which name should be used for new log file by rollover.