How to enable or disable the STDOUT and/or STDERR messages in JBoss EAP 4.x logs

Solution Verified - Updated -

Issue

  • How can we suppress the STDOUT messages in our log file?
  • How can I get ride of this error message:
    ...
    ERROR [STDERR] yyyy-MM-dd HH:mm:ss [145239107 main] [TIBCO EMS]: [J] QueueConnection Create QueueSession conn=386292 sess=989709 transacted=false ackmode=1
    ERROR [STDERR] yyyy-MM-dd HH:mm:ss [145239107 main] [TIBCO EMS]: [J] QueueSession Create Queue conn=386292 sess=989709 dest=$sys.lookup
    ERROR [STDERR] yyyy-MM-dd HH:mm:ss [145239107 main] [TIBCO EMS]: [J] QueueSession Create QueueSender conn=386292 sess=989709 prod=310507 dest=Queue[$sys.lookup] type=Queue
    ...
    
  • We are receiving error messages for each message logged to the server even when the message does not indicate an error
  • How can I prevent messages that my application writes to STDOUT or STDERR from showing up in the server log file or on the console?

Environment

  • JBoss Enterprise Application Platform (EAP) 4.2
  • JBoss Enterprise Application Platform (EAP) 4.3
  • Application, service, or component deployed to EAP server which prints output to STDOUT or STDERR (System.out.println(), System.err.println())

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.