With the logging module of python3 I am logging to a file like this:
import logging
logging.basicConfig(filename='log')
logging.info('123')
Now everytime a logging event occurs, i want a function to be called as well with the LogRecord as an argument.
How do I achieve this?