Hi This is the debug output of my logging configuration. The logging is coming inside stderr.log instead of stdout.log inside Tomcat. Cant understand whats the problem. log4j: Parsing for [root] with value=[INFO, A1]. log4j: Priority token is [INFO]. log4j: Category root set to INFO log4j: Parsing appender named "A1". log4j: Parsing layout options for "A1". log4j: Setting property [conversionPattern] to [%-5r %-5p [%t] - %m%n]. log4j: End of parsing for "A1". log4j: Parsed "A1" options. log4j: Parsing for [com.cisco.nm.cmf.cmic.registry] with value=[INFO, A1]. log4j: Priority token is [INFO]. log4j: Category com.cisco.nm.cmf.cmic.registry set to INFO log4j: Parsing appender named "A1". log4j: Appender "A1" was already parsed. log4j: Handling log4j.additivity.com.cisco.nm.cmf.cmic.registry=[true] log4j: Setting additivity for "com.cisco.nm.cmf.cmic.registry" to true log4j: Parsing for [com.cisco.nm.cmf.cmic.util] with value=[INFO, A1 ]. log4j: Priority token is [INFO]. log4j: Category com.cisco.nm.cmf.cmic.util set to INFO log4j: Parsing appender named "A1". log4j: Appender "A1" was already parsed. log4j: Handling log4j.additivity.com.cisco.nm.cmf.cmic.util=[true] log4j: Setting additivity for "com.cisco.nm.cmf.cmic.util" to true log4j: Finished configuring. Thanks Atul -----Original Message----- From: Atul Gosain [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 7:53 PM To: '[EMAIL PROTECTED]' Subject: Multiple logging inside a single webapp
Hi I have a situation like, a single webapp, but different modules inside a single webapp. Each module is using its own logging using log4j. Each one has a configuration file in Web-inf/classes and log4j.jar is inside Web-inf/lib which they are configuring in their classes through PropertConfigurator. Some problems faced are 1. Now the problem is that after tomcat starting up. There's a module which is appending on Console. but instead the logs are coming in standard error. I am not getting why they are coming in stderr instead of stdout logs. 2. Also .. i have one more query. i have the configuration file outside the tomcat environment, but i have configured the file in PropertyConfigurator, but the logging doesnt come in stdout of tomcat. Is it because configuration file is not available to tomcat classloader. 3. There is another module who is logging inside its log file using FileAppender. The problem is that the logging of all the modules start coming in that file after the tomcat startup. They are not logging in their separate log files. Is it that in Tomcat environment, in one webapp, only one logging property comes into effect. I hope many people must be using log4j inside tomcat with this kind of environment. Please guide. Thanks Atul