On 1/21/11 12:24 PM, mcelotti wrote:
I have a product (plone3) that succesfully calls an external webservice to fetch data. I'd like to log some debug info (something like "callin method foo() with params ..."), but: - if I use logger.debug() then in my buildout I must use "event-log-level = debug" to see my messages. this becomes a mess with tons of other zope-plone messages. - if I use logger.info(), and in buildout "event-log-level = info", a user could not be interested in reading my messages (ie: a production environment) I wish I could specify (like in Java with log4j) a logger level ONLY for my product, but as far as I know, this is not possible.
No but you can define your own handler entirely and have it log to wherever you want. Pythons logging facilities are quite flexible and powerful. Start, e.g., here http://docs.python.org/release/2.4.2/lib/module-logging.html and take some time to work your way from there. Good luck, Raphael
Any ideas? Thanks
_______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/product-developers
