tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pyeron" <jpye...@pdinc.us>
Subject RE: Intercept Tomcat log
Date Fri, 31 Dec 2010 14:37:03 GMT
> -----Original Message-----
> From: Igor Simões [mailto:igor.americana@gmail.com] 
> Sent: Friday, December 31, 2010 4:51
> To: Tomcat Users List
> Subject: Re: Intercept Tomcat log
> 
> The offline processing of tomcat log files is the first 
> option, but we were looking for something that could allow us 
> to do on-line processing, or processing with short delay time.
> 
> Unhappily the corporation I work don't have pearl on the list 
> of languages with official production environment setup.
> 

Please do not top post.

> Thanks!
> 
> 2010/12/30 André Warnier <aw@ice-sa.com>
> 
> > Mikolaj Rydzewski wrote:
> >
> >>
> >> On Thu, 30 Dec 2010 13:28:02 -0200, Igor Simões 
> >> <igor.americana@gmail.com>
> >> wrote:
> >>
> >>  Is there any way to intercept log entries?
> >>>

I am going to answer this with a java.util.logging point of view.

You can install multiple handlers
(http://download.oracle.com/javase/6/docs/api/java/util/logging/Handler.html),
even dynamically.

You can attach this to the root logger "" or a specific level "com.ice-sa" etc.

Following a pattern like the MemoryHandler you can even report back logs upon a
triggering condition.

-Jason 

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message