Howdy,

>static Category cat = Category.getInstance(MyClass.class.getName());
>
>In order to write logs to a file, should I modify the above line; and
if
>yes, can you pl. tell me how I need to modify it?

I would suggest modifying it as
private static final Logger logger =
Logger.getLogger(MyClass.class.getName())

as loggers should be private and final, and Category class is
deprecated.  This has nothing to do with File appenders or any other
appenders: you obtain loggers independently of any appender
configuration.

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