[PEAK] peak logs

darryl developer at csrules.dyndns.org
Fri Jan 2 14:33:54 EST 2004


>
> 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.
>
>
As far as i can tell the problem only presents itself when i "offerAs"

i.e.

log = binding.Otain('logger:bots.jabber', offerAs=['app.log'])

Then in any other child component when i do

log = binding.Obtain(PropertyName('app.log')

then do:
self.log.debug('test')
i get no output.

-darryl




More information about the PEAK mailing list