I have a logger instance I pass to functions.
def function(inp1, logger)
logger.info('important')
print('sessional')
Some not important info I do print, the other I log (to not oversize output file).
I want to change all "print" to "logger" that have a maximum file size in round robin - new msg will overwritten over the oldest one.
Can I do that on the same logger instance so I wont need to pass another instance? so one logger will always log and second logger will log round-robin.