log4j-user  

How to use a second log4j.properties file for a special java program?

Ben Stover
Thu, 26 Aug 2010 02:49:48 -0700

Assume a default log4j.properties file is setup for a whole application server.

Now I deploy a new, own java program into the application server which contains 
logging
statements like

log.info("....");

as well.
Currently the log output go to the default log file defined in the overall 
log4j.properties file.

But I want to use another, different logfile. This should be defined (as far as 
I can see) in a second
log4j.properties file.  But how can I access this jog4j.properties file when 
creating the logger in the java program?
Resp. how can I tell the environment to use another log4j.properties file ?

Ben






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