Hi All,
I have a .sar file where the requirement is such that i need to write the logs at two
places. I dont have log4j.jar in my .sar file. All I have is log4j.xml (configuration
file) just in root dir. (.sar/). The .sar file contains WebInf dir and also metaINF dir.
I have include the part of log4j.xml file. Could anyone please help me in this regard. I
have a log4j.xml at container level, that will take care of logging in centralised
location. First appender will take care of centralized logging. And the second appender,
locally. But i am not able to write it to both the locations. please let me know, if i am
making any mistake
xml version="1.0" encoding="UTF-8
log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false"
appender name="SunAm" class="com.systemmanagement"
errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/
/appender
appender name="test1" class="org.apache.log4j.RollingFileAppender"
param name="Threshold" value="INFO" /
param name="File" value="/logs/test.alog"/
layout class="org.apache.log4j.PatternLayout"
param name="ConversionPattern" value="%d %-5p[App1] (%F:%L)
[%c{1}] %m %n" /
layout
appender
logger name="com.nortel.systemmanagement" additivity="false"
level value="INFO" /
appender-ref ref="test1"/
appender-ref ref="SunAm"/
</log4j:configuration>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989595#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...