logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Catching Exceptions through Log4j
Date Fri, 20 Feb 2004 02:49:05 GMT
At 05:00 PM 2/19/2004 +0530, you wrote:
>Hi all,
>     First things first HI Everybody. I am new to this group and for 
> logging otherthan using SOPs. I have a small question before actually 
> start using it. Will log4j prints catched and uncatched exceptions. If 
> yes at what level they will be in.

Do you mean will Log4j provide some sort of magic to display exceptions 
that happen?  Well, no.  You have to log the exception yourself, just like 
anything else you log.

logger.debug("Boom!  An exception", e);

Log4j doesn't handle your exceptions for you, but provides a way to view 
the ones you catch in a log.  Hope I didn't completely miss the point on 
that one.  If I did, please re-explain what you are trying to get at.


>Ajay Kumar.G
>Bioinformatics Specialist
>Ocimum Biosolutions
>404 Reliance Classic
>Road no 1 Banjara Hills
>Hyderabad 500034
>Phone: (91)40-55627200
>Fax: (91)40-55627205
>Disclaimer: This email and any files transmitted with it are confidential 
>and intended solely for the use of the individual or entity to whom they 
>are addressed. If you have received this email in error please notify the 
>system manager at webmaster@ocimumbio.com . Please note that any views or 
>opinions presented in this email are solely those of the author and do not 
>necessarily represent those of Ocimum. Finally, the recipient should check 
>this email and any attachments for the presence of viruses. Ocimum accepts 
>no liability for any damage caused by any virus transmitted by this email.

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message