I have 2 independent scripts in which I use the logging module. When running them, I would like to keep the logs in a centralised way, in the sense of having a single folder for all of them. These are the scripts:
foo.py
import logging
def foo():
logging.info('MY INFO AUX IN FOO')
bar.py
import logging
def bar():
logging.info('MY INFO AUX IN BAR')
How could I set up a YAML file that told the scripts to store the logs in the same place? Any ideas/best practices are very welcome.