How do you configure Log4j? "log4jxml.xml" will not be picked up for
auto-configuration. You'd have to change the name to "log4j.xml" for that.
You can set the Java system property "-Dlog4j.debug=true" to see Log4j's
internal logging, which will show which file it is (or possibly isn't)
configuring.
Jake
On Tue, 2 Jun 2009 10:00:46 -0400
Ashish Kulkarni <ashish.kulkarn...@gmail.com> wrote:
HiI have an application which is installed in clustered weblogic
environment, and for some reason i do not see any logs in the log file
specified in File section
I have defined my logger as below, i dont see any log file in my
log4jxml.xml file, but only in weblogic log file, how do i find out what is
happening with log4jxml.xml
<appender name="A1" class="org.apache.log4j.DailyRollingFileAppender" >
<param name="File" value="/myapp/logs/log4jXml.xml" />
<param name="DatePattern" value="'.'yyyy-MM-dd" />
<layout class="org.apache.log4j.xml.XMLLayout">
</layout>
</appender>
<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%F:%L) -
%m%n" />
</layout>
</appender>
<root>
<priority value="warn" />
<appender-ref ref="A1" />
<appender-ref ref="STDOUT" />
</root>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org