Discussion:
[jboss-user] [Beginner's Corner] - 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
James Perkins
2013-01-03 23:03:49 UTC
Permalink
James Perkins [https://community.jboss.org/people/jamezp] 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/787423#787423

--------------------------------------------------------------
What version of JBoss AS?

--
James R. Perkins
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787423#787423]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Karthikeyan S
2013-01-04 06:38:59 UTC
Permalink
Karthikeyan S [https://community.jboss.org/people/karthik_pasc] 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/787520#787520

--------------------------------------------------------------
*jboss-4.0.2*
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787520#787520]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Peter Johnson
2013-01-04 19:36:54 UTC
Permalink
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]
Loading...