Howdy,
Craig already provided the right answer (as always ;))
and some options to address your need.  I would suggest
one more option: don't re-invent the wheel, and use a logging
toolkit with email support, e.g. log4j.  You will have
fine-grained control over the content, format, and conditions
for sending emails, without writing any proprietary code
such as your own logger, that you would have to maintain.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Chris Gokey [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 25, 2003 9:48 PM
>To: Tomcat Users List
>Subject: Re: SMTP Logger
>
>Hi everyone,
>
>Back to this again.. Any help would be very appreciated.
>
>I'd created a custom logger that will email errors rather than log them
>to a file system.
>
>Unfortunately, if I add another <Logger className="..."> declaration to
>server.xml, it will not use the existing Logger (FileLogger).  How can
I
>make it use both?
>
>Optionally, I thought of extends the FileLogger, but it is declared
>final, so this won't work.
>
>How should I approach this?  Or maybe there is some class already part
>of Tomcat that can do what I'm looking for?
>
>I'm using Tomcat 4.03 under Redhat 8.
>
>Thanks in advance.
>Chris
>
>
>On Sat, 2003-03-08 at 21:17, Chris Gokey wrote:
>> Is there alternatives to the FileLogger class?
>>   <!-- Global logger unless overridden at lower levels -->
>>       <Logger className="org.apache.catalina.logger.FileLogger"
>>               prefix="catalina_log." suffix=".txt"
>>               timestamp="true"/>
>>
>> I'd like intercept any errors in Tomcat and mail these errors to a
>> particular person.
>>
>> If not, can I add another Logger by specifying an entry like the
above
>> in the server.xml and creating my custom Logger class?   Is that all
>> that is necessary?
>>
>> Thanks,
>> Chris
>--
>Christopher D. Gokey, SSAI, NASA/GCMD
>18 Martin Road, Shelburne Falls, MA  01370
>Phone: Voice (413) 625-8129 / FAX 208-248-9055
>[EMAIL PROTECTED]
>AOL: chrisgokey
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to