Hi,
On 10/29/10 10:11 PM, Matt wrote:
Hi, I'm interested in using Logbook to add logging to Whoosh, on the
theory that Logbook is or will be faster than logging. However,
because Whoosh is a library, there is no "starting point" at which to
configure the log object.
Enter logbook :)
With logging I would just use getLogger() to get a shared logger at
the top of every module. With Logbook, I assume I would instead create
an e.g. whoosh.logging module in which I configure a Logbook logger
and have every other module import it? Or is there a better way to do
this? I don't want to spend a lot of time on logging... I just want to
do the simplest possible thing for now.
Logbook usually does not require configuration on the loggers. Just
create loggers as necessary, put them somewhere and use them. To
configure the logbook setup the user of the application would configure
the handlers as necessary and call into Whoosh code.
If no custom handler is set up, logbook will print everything to stderr.
Regards,
Armin
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en.