Hi:

    I am writing a Java based library for which I am using the log4j
package (version 1.2.8)

   

    I am new to log4j. I am confused about the following points:

    a) Are there any special things we need to worry about
configuration. 

       Currently, I am considering configuration from a properties file
using the PropertyConfigurator class when the library 

       initializes. I am planning to include a logging .properties file
within my .jar file for the library.

       The case I am considering I when users (read as applications) of
my library may also be using log4j.  I am not sure if I 

       use PropertyConfigurator class without resetting logging
configuration of a user in that case. 

       Specifically, I would like all loggers within my library to be at
least at the WARN level. Is there a way I can ensure that 

       even if I am writing a library.

            

   b) For RollingFileAppender, is there a nice way to specify location
of log file without hard-coding the path. I am interested in knowing
what other library writers do in such cases.

 

   Hope the user community can help me with these questions.

 

regards

Somesh Marepalli

 

Reply via email to