This content has been marked as final.
Show 5 replies
-
1. Re: Jboss-log4j.xml configuration
Peter Johnson Jun 5, 2009 6:04 PM (in response to Vinaya Tirikkovalluru)Where did you place this file?
By the way, when posting XML code, wrap it in "code" tags. To do this, select the text and click the Code button above the editor window. Also, click Preview and verify the formatting before clicking Submit. -
2. Re: Jboss-log4j.xml configuration
Vinaya Tirikkovalluru Jun 8, 2009 10:54 AM (in response to Vinaya Tirikkovalluru)Hi Peter,
I have the file in
jboss_home/servers/default/config, my app is in default folder.
My Xml is<appender name="FILE" class="org.apache.log4j.FileAppender"> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> <param name="File" value="C:/jboss-4.2.2.GA/server/default/log/server.log"/> <param name="Append" value="false"/> <param name="Threshold" value="DEBUG"/> <param name="Encoding" value="UTF-8"/> <!-- Rollover at midnight each day --> <!-- Rollover at the top of each hour <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/> --> <layout class="org.apache.log4j.PatternLayout"> <!-- The default pattern: Date Priority [Category] Message\n --> <param name="ConversionPattern" value="%d [%X{username}] %-5p [%c] %m%n"/> <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/> --> </layout> </appender>
-
3. Re: Jboss-log4j.xml configuration
Peter Johnson Jun 8, 2009 12:48 PM (in response to Vinaya Tirikkovalluru)Do you have a copy of log4j.jar in you app? If so, remove it.
-
4. Re: Jboss-log4j.xml configuration
Vinaya Tirikkovalluru Jun 9, 2009 9:21 AM (in response to Vinaya Tirikkovalluru)Hi Peter,
I tried that. But I have using Log4jMDCUserFilter to log the session id and user name. I am getting errors on this , if I remove the log4j.jar.
Thanks
Vinaya -
5. Re: Jboss-log4j.xml configuration
Peter Johnson Jun 9, 2009 12:58 PM (in response to Vinaya Tirikkovalluru)See if this discussion helps: http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4125552