Hi,
I am revamping a java application. We are planning to user Log4j but I am new to Log4j. My requirement is, I need to use the same log4j property file for 8 different module. I need to know how to configure different file names for different modules in the same log4j file. Thanks for your time.
-
Using Log4j Properties (2 messages)
- Posted by: Senthil Nathan
- Posted on: February 07 2005 02:38 EST
Threaded Messages (2)
- Using Log4j Properties by Ruslan Zenin on February 07 2005 06:17 EST
- Using multiple Log4j Properties in the same application by Jeevan Sunkersett on December 23 2008 04:37 EST
-
Using Log4j Properties[ Go to top ]
- Posted by: Ruslan Zenin
- Posted on: February 07 2005 06:17 EST
- in response to Senthil Nathan
One way is to put your common log4j.properties in some shared directory and make this directory on the class path for each application...
This way only one file is required for many apps... -
Using multiple Log4j Properties in the same application[ Go to top ]
- Posted by: Jeevan Sunkersett
- Posted on: December 23 2008 04:37 EST
- in response to Senthil Nathan
Hi, I want to use log4j a bit differently. I want logs of certain classes (or package) to go to a File-1.log and logs of few others to go to some-other-File.log In this case would I require multiple log4j.properties or a single/ common log4j.properties (with the required number of different appenders) TIA! ~g1 PS: Actually, this question arose cause, I want to use RollingFileAppender and JMSAppender both. However RollingFileAppender will cover all classes (while JMS logging only for my mypack.jms.jmsPublisher.java)