[PEAK] peak logs

darryl developer at csrules.dyndns.org
Fri Jan 2 14:15:04 EST 2004


>
> Try 'print self.log.level'.
>
30

>
>
> >>> from peak.api import *
> >>> from myapp import MyBrokenClass
> >>> ob = MyBrokenClass(config.makeRoot())
> >>> ob.log.debug("foo")
>
> If the problem is that you're offering the log in one place, and 
> another place doesn't seem to be getting it, then you need to do a few 
> more steps here, but that's the basic idea.

ok:

 >>> from peak.api import *
 >>> from jabot import msgHandler
 >>> ob = msgHandler(config.makeRoot())
 >>> ob.log
<peak.running.logs.LogStream object at 0x84bbd94>
 >>> ob.log.debug("foo")
Jan 02 11:10:35 hydra bot.jabber[1579]: foo

So, the problem is elsewhere but only presents itself when i change my 
config files.






More information about the PEAK mailing list