[Zope] Prevent a logger from writing to event.log
Hi, Is it possible to have a logger in Zope that doesn't write to the event.log? All the other loggers can write to the event.log, but just this one logger should not. -- Bert Vanderbauwhede -- I don't know if you noticed or not, but I'm an extremely arrogant man, who thinks all his plans will work. Rodney McKay, Stargate Atlantis ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Prevent a logger from writing to event.log
- Original Message - From: Bert Vanderbauwhede batlock...@gmail.com To: zope@zope.org Sent: Friday, October 16, 2009 8:07 AM Subject: [Zope] Prevent a logger from writing to event.log Hi, Is it possible to have a logger in Zope that doesn't write to the event.log? All the other loggers can write to the event.log, but just this one logger should not. You can easily build your own: we use an external method that any routine can call to log an event. In one use case we log user actions/activity and the log file is actually a MySQL database (we do this so that we can retrieve, in real-time, previous user actions which we then use to customize what is presented to the user). The advantage of rolling your own is that you can log whatever you want, in whatever format you need, whenever/wherever you need it. Jonathan ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Prevent a logger from writing to event.log
Sure, check out and find out how to create your own logger instance where you decide what filename to write to. http://blog.doughellmann.com/2007/05/pymotw-logging.html 2009/10/16 Bert Vanderbauwhede batlock...@gmail.com: Hi, Is it possible to have a logger in Zope that doesn't write to the event.log? All the other loggers can write to the event.log, but just this one logger should not. -- Bert Vanderbauwhede -- I don't know if you noticed or not, but I'm an extremely arrogant man, who thinks all his plans will work. Rodney McKay, Stargate Atlantis ___ Zope maillist - z...@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com fun crosstips.org ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )