Hi, kind of weird problem here :oops: I will be very happy if this a kind of a newbie problem!
We are using a FileLogger in Tomcat to have our application log to it's own file. The file has a prefix, a suffix and a timestamp.
The weird thing in here is some INFO entries go to that file, but others are still in stdout.log. :shock:
We 'd included in our myapp.xml file a file logger definition:
Then, our log4j.properties file, in WEB-INF/classes has the standard settings for stdout.
<Environment name="config/jdbcConfigLocation" some jndi stuff
<Logger className="org.apache.catalina.logger.FileLogger" prefix="myapp_" suffix=".log" timestamp="true"/>
Now in the web.xml file we have the regular
In our beans, we init the logger with a regular
Some of the problematic classes are not Spring beans, they are created at runtime. They also instantiate the logger using the standard call.
Log logger = LogFactory.getLog(getClass());
Any help, or at least an aspirin would be appreciate!