[PEAK] peak logs
Phillip J. Eby
pje at telecommunity.com
Fri Jan 2 12:55:20 EST 2004
At 11:33 AM 1/2/04 -0800, darryl wrote:
>>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.
Then, the "child" component doesn't have the parent you think it does. Use
'config.iterParents()' to walk over the parents and you'll probably find
that the component doing the offering isn't in the list.
More information about the PEAK
mailing list