You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Igor Simões <ig...@gmail.com> on 2010/12/30 16:28:02 UTC
Intercept Tomcat log
Hi,
Is there any way to intercept log entries?
We are building a monitoring mechanism that open JIRA issues for some kinds
of uncaught exceptions, so I need to monitor exceptions that appear on
catalina.out log file.
--
[]'s Igor Regis
Re: Intercept Tomcat log
Posted by André Warnier <aw...@ice-sa.com>.
Igor Simões wrote:
> 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.
>
I cannot say that I am entirely surprised.
But it is nevertheless rather funny, since I am sure that any kind of system nowadays
already uses perl as part of some standard OS packages.
Even Windows does...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Intercept Tomcat log [OT]
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jason,
On 12/31/2010 1:00 PM, Jason Pyeron wrote:
> I am dizzy.
+1
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk0eXOMACgkQ9CaO5/Lv0PBCjACgnnWsXFE3bX1bPcnVAAmijL3W
DO0An1oSedzA0FMK/ajkZYZaPJN1Dzwn
=RtIF
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Intercept Tomcat log [OT]
Posted by Jason Pyeron <jp...@pdinc.us>.
> -----Original Message-----
> From: André Warnier
> Sent: Friday, December 31, 2010 11:03
> To: Tomcat Users List
> Subject: Re: Intercept Tomcat log
>
> ;-)
>
> I agree. But then why did you start bottom-posting after the
> previous person top-posted ?
> That was confusing too.
>
> > Yes they do, when they start top-posting after someone
> else bottom-posted, it gets confusing.
>
> Nobody forces you to.
>
> > But I don't.
>
> Yes, but some people prefer it this way.
>
> > Because it ruins the logical flow of the conversation.
>
> Why not ?
>
> Jason Pyeron wrote:
> >
> > Please do not top post.
> >
I am dizzy.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- 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
Re: Intercept Tomcat log
Posted by André Warnier <aw...@ice-sa.com>.
;-)
I agree. But then why did you start bottom-posting after the previous person top-posted ?
That was confusing too.
> Yes they do, when they start top-posting after someone else bottom-posted, it gets
confusing.
Nobody forces you to.
> But I don't.
Yes, but some people prefer it this way.
> Because it ruins the logical flow of the conversation.
Why not ?
Jason Pyeron wrote:
>
> Please do not top post.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Intercept Tomcat log
Posted by Jason Pyeron <jp...@pdinc.us>.
> -----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
> >> <ig...@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
Re: Intercept Tomcat log
Posted by Igor Simões <ig...@gmail.com>.
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.
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 <ig...@gmail.com>
>> wrote:
>>
>> Is there any way to intercept log entries?
>>>
>>> We are building a monitoring mechanism that open JIRA issues for some
>>> kinds
>>> of uncaught exceptions, so I need to monitor exceptions that appear on
>>> catalina.out log file.
>>>
>>
>> Implement custom log4j appender?
>>
>> I'd rather use offline tool (perl script?) to process logfiles.
>>
>> +1
>
> and have a look here :
>
> http://cpan.uwinnipeg.ca/htdocs/JIRA-Client/JIRA/Client.html
>
> and about parsing the logfiles, here :
>
> http://cpan.uwinnipeg.ca/search?query=logfiles&mode=dist
>
> perl/CPAN rocks !
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
[]'s Igor Regis
Re: Intercept Tomcat log
Posted by André Warnier <aw...@ice-sa.com>.
Mikolaj Rydzewski wrote:
>
> On Thu, 30 Dec 2010 13:28:02 -0200, Igor Simões
> <ig...@gmail.com> wrote:
>
>> Is there any way to intercept log entries?
>>
>> We are building a monitoring mechanism that open JIRA issues for some
>> kinds
>> of uncaught exceptions, so I need to monitor exceptions that appear on
>> catalina.out log file.
>
> Implement custom log4j appender?
>
> I'd rather use offline tool (perl script?) to process logfiles.
>
+1
and have a look here :
http://cpan.uwinnipeg.ca/htdocs/JIRA-Client/JIRA/Client.html
and about parsing the logfiles, here :
http://cpan.uwinnipeg.ca/search?query=logfiles&mode=dist
perl/CPAN rocks !
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Intercept Tomcat log
Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
On Thu, 30 Dec 2010 13:28:02 -0200, Igor Simões
<ig...@gmail.com> wrote:
> Is there any way to intercept log entries?
>
> We are building a monitoring mechanism that open JIRA issues for some
> kinds
> of uncaught exceptions, so I need to monitor exceptions that appear
> on
> catalina.out log file.
Implement custom log4j appender?
I'd rather use offline tool (perl script?) to process logfiles.
--
Mikolaj Rydzewski <mi...@ceti.pl>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org