Peter Johnson [https://community.jboss.org/people/peterj] created the discussion
"Re: hi i am working in jboss server i have some problem to find error in server.log file . how can i configure to show only ERROR priority in my log file" To view the discussion, visit: https://community.jboss.org/message/787692#787692 -------------------------------------------------------------- Why is it so hard to find error entries in the server log? Just open the log with a text editor and tell it to find "ERROR" as a case-sensitive whole word. (If your text editor doesn't do that, get a better text editor!) JBoss AS versions 4.x and 5.x used Log4J for logging. Look for the server/xxx/cong/jboss-og4j.xml (or just log4j.xml in earlier versions). To limit server log output to ERROR, add a threshold line to the FILE appender, as shown below (this text is from 5.1.0, other versions migth differ slightly in their contents): <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender"> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> <param name="File" value="${jboss.server.log.dir}/server.log"/> <param name="Append" value="true"/> <param name="Threshold" value="ERROR"/> <!-- add this line --> . . . </appender> -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/787692#787692] Start a new discussion in Beginner's Corner at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
