Suppressing entire log statements from "stdout", "stderr" or specific log category in JBoss EAP 6.x, 7.x, or 8.x

Solution Verified - Updated -

Issue

  • How to disable entire log statements from the stdout log category (System.out) and the stderr log category (System.err) in the JBoss EAP 6/7/8?
  • How to suppress the stdout log messages from server.log, but still output it to console output.
  • We are dealing with vendor java software that is logging too much like the following stdout and filling up disk space. We needs to suppress these lines.

    2018-09-05 15:08:41,777 INFO  [stdout] (default task-47)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho
    2018-09-05 15:08:41,777 INFO  [stdout] (default task-47) Building the inner query ...
    2018-09-05 15:08:41,808 INFO  [stdout] (default task-47)    No Filter Criterias, no where clause !! No need to fire inner query, as everything will be selected anyways ...dAccessorImpl.java:43)
    2018-09-05 15:08:41,808 INFO  [stdout] (default task-47)    at java.lang.reflect.Method.invoke(Method.java:497)
    2018-09-05 15:08:41,808 INFO  [stdout] (default task-47)    at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    2018-09-05 15:08:41,808 INFO  [stdout] (default task-47)    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    2018-09-05 15:08:41,808 INFO  [stdout] (default task-47)    at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178)
    2018-09-05 15:08:41,808 INFO  [stdout] (default task-47)    at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:68)
    
  • How to disable entire log statements from the specific com.example.xyz log category in the JBoss EAP 6/7/8?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x
    • 8.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content