Re: Help me with weird logging problem

2012-03-06 Thread J
On Tue, Mar 6, 2012 at 11:19, Vinay Sajip wrote: > On Mar 6, 4:09 pm, J wrote: >> >> Any idea what I'm doing wrong? > > Levels can be set on loggers as well as handlers, and you're only > setting levels on the handlers. The default level on the root logger > is WARNING. A logger checks its level

Re: Help me with weird logging problem

2012-03-06 Thread Vinay Sajip
On Mar 6, 4:09 pm, J wrote: > > Any idea what I'm doing wrong? Levels can be set on loggers as well as handlers, and you're only setting levels on the handlers. The default level on the root logger is WARNING. A logger checks its level first, and only if the event passes that test will it be pass

Help me with weird logging problem

2012-03-06 Thread J
Hi, I'm trying to add a couple log handlers to a program. The end goal is to log things at INFO or above to console, and if a -v option is set to ALSO log everything at DEBUG or above to a file. However, while I DO get the log file created, and log messages are appearing there, Debug messages ar

logging problem

2008-03-10 Thread Abel Ferreira
Hi. I have a problem with python. I dont wanna bother you, but it's seem you had the same error. Did you get solve this problem? I know it's old, but if you remember, tell me. i'm using python's logging facilities in all of my application modules. > my logging.conf file is: > [loggers] > keys=

logging problem

2006-04-26 Thread Shine Anne
  HI All,  I am having an app that needs to display a lot of msgs. These msgs need to kept ina log. I have written it as : D EBUG =1 if DEBUG:     import logging    logging.basicConfig(level=logging.DEBUG,    format='%(asctime)s %(levelname)s %(message)s',    filena

logging problem on Windows XP

2006-02-15 Thread john peter
i'm using python's logging facilities in all of my application modules. my logging.conf file is: [loggers]keys=root [handlers]keys=roth [formatters]keys=simpleFormatter [logger_root]level=DEBUGhandlers=roth [handler_roth]class=handlers.RotatingFileHandlerlevel=DEBUGformatter=simpleFormatterar