I have already tried the RotatingFileHandler, That solution is not what I am looking for. I want a system that will automatically split log file into multiple files if it exceeds a certain limit (ex 10MB).
my_handler = RotatingFileHandler(log_filename, mode='a', maxBytes=1024*1024*10, backupCount=2, encoding=None, delay=0)
Already tried this^, but this is not what I want.
Source: Python Questions