I can’t modify the recording file on the fly.
For example, I have 3 classes
one.py
import logging class One(): def __init__(self,txt="?"): logging.debug("Hey, I'm the class One and I say: %s" % txt)
two.py
import logging class Two(): def __init__(self,txt="?"): logging.debug("Hey, I'm the class Two and I say: %s" % txt)
config.py
import logging class Config(): def __init__(self,logfile=None): logging.debug("Reading config") self.logfile(logfile)
myapp
from one import One from two import Two from config import Config import logging
If I try loggin.basicConfig() again, this will not work.
python logging configuration
xkill Dec 12 '12 at 12:14 2012-12-12 12:14
source share