[PEAK] peak logs
Phillip J. Eby
pje at telecommunity.com
Fri Jan 2 08:32:36 EST 2004
At 10:40 PM 1/1/04 -0800, darryl wrote:
>>What happens when you do the same on your machine?
>Ok i guess i should have tested my own simpified test case. When I tried
>above with the same .ini file it worked as depicted above. Now I went
>to the real code and what I was doing was:
>
>log = binding.Obtain('logging.logger:bots.jabber', offerAs=['app.log'])
>
>
>When i changed my ini file to :
>
>[jabber]
>
>logger = logs.LogStream(steam = importString('sys.stderr'),level=logs.DEBUG)
>
>and then changed the 'Obtain' to:
>
>log = binding.Obtain(PropertyName('logger.jabber'), offerAs = ['app.log'])
>
>
>Now everything works.....
I don't see how, since you have jabber.logger being looked up by
logger.jabber... But maybe that's a typo in your email.
I do suggest sticking with the 'logger:bots.jabber' format, though, as it
will offer considerable advantage in the future vs. simply putting a logger
in a property. It will be possible to create logger plugins, whereby
multiple things can happen as a result of sending things to a single
logger. Today, you can only have one object that does things as a result
of logging a message.
More information about the PEAK
mailing list