• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to configure java files in log4j.xml ?  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I configured the JSP files in log4j.xml so that all JSP files can be displayed in console.
<appender name="JSPFLOW" class="org.jboss.logging.appender.DailyRollingFileAppender">

<param name="File" value="${jboss.server.log.dir}/jsp-flow.log"/>
<param name="Append" value="false"/>
<param name="Threshold" value="TRACE#org.jboss.logging.XLevel"/>

<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd"/>ttt

<!-- 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 %-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"/>

Now how could I configure log4j.xml so that all Java files can be displayed,that are called per page in web application ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!