Hi,
 Thanks for the reply.But setting the threshold to ERROR will log both ERROR
and FATAL right.I am eager to know is there any possible setting in config
file will avoid writing fatal messages too..

Sudhakar 

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 7:31 PM
To: Log4J Users List
Subject: RE: Selective Logging



Howdy,

>     1)I want to log only error level messages in log file.How do I
>proceed?

Yes, define a FileAppender with Threshold of ERROR.

>     2)Is it possible to change the configuration setting at runtime
>without
>restarting the server it should reflect while logging?

Yes, both programmatically and automatically by changing the log file.
See Configurator#configureAndWatch, the log4j config servlet in the
log4j sandbox repository, and this list's archive.

>    3)Is it possible application running in different port should log
to a
>same log file?

Yes.

Basically, RTFM ;)  Start out by reading the short manual and adding
log4j to your application.  Then, when you run into specific problems
ask us and we'll help.

Yoav Shapira



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]



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

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

Reply via email to