ANSI escape sequence in JBoss 6.1 stdout redirection

Solution Verified - Updated -

Issue

  • While starting JBoss 6.1 on my RHEL5 server like "standalone.sh > jboss61.out", then getting strange characters at the beginning of each line. This doesn't occur on JBoss 6.0. For JBoss 6.1 it does not occur on Windows. How to correct this?

  • Is there a way that console log does not show colours when an error occurs?

  • We found the JBoss server log containing strange characters "ESC" with square brackets in the server.log in Linux box. See sample logging data in attached.

ESC[31m ... ... [0m
ESC[0mESC[0m

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.1
    • 6.2
    • 6.3

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.