Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

Prevent a logger from writing to event.log

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


batlock666 at gmail

Oct 16, 2009, 5:07 AM

Post #1 of 3 (459 views)
Permalink
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


dev101 at magma

Oct 16, 2009, 5:27 AM

Post #2 of 3 (398 views)
Permalink
Re: Prevent a logger from writing to event.log [In reply to]

----- Original Message -----
From: "Bert Vanderbauwhede" <batlock666[at]gmail.com>
To: <zope[at]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[at]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 )


peterbe at gmail

Oct 16, 2009, 5:30 AM

Post #3 of 3 (400 views)
Permalink
Re: Prevent a logger from writing to event.log [In reply to]

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 <batlock666[at]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  -  Zope[at]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[at]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 )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.