Python module logging with eclipse -


i trying logging going across couple of different modules using logging.config.fileconfig() directory looks this:

> package    > source        __init__.py        somesource.py    > test        __init__.py        sometests.py    __init__.py 

inside in package.__init__.py have following:

directory = 'c:/user/me/workspace/package/' logfile = 'logger.conf' logging.config.fileconfig(directory+logfile) log = logging.getlogger('package') log.info('logging initialized.')  import test 

inside in package.test.__init__.py have

log = logging.getlogger('package.test') log.info('test module started') 

so expected output like:

logging initialized. test module started. 

i can run , log correctly while using eclipse using ctrl+f11. however, calling interpreter results in nothing @ all:

>>> import package 

the log file remains empty. ideas?

check python directory. in there.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -