[Twisted-Python] Log level using Twistd

Juan Antonio IbaƱez Santorum juanito1982 at gmail.com
Wed Apr 30 02:57:27 MDT 2014


Hello,

  I am trying to modify loglevel withou result. I configure my app logging
inside the tac file as:

logging.basicConfig(level=logging.ERROR, format="%(asctime)s --- %(name)s -
%(levelname)s - %(message)s")
logfile = DailyLogFile("gdumper.log", "/var/log")
application.setComponent(ILogObserver, FileLogObserver(logfile).emit)

logging.basicConfig call seems do not apply as I get both log.msg and
log.err messages into the log. Is there any other way to set up log level?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140430/a4b3c7d0/attachment.html>


More information about the Twisted-Python mailing list