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]

Reply via email to