How to change the logging formatter in JBoss EAP 6?

Solution In Progress - Updated -

Issue

  • How to change the logging formatter in JBoss EAP 6?
  • Is it possible to change the formatter in logging.properties in JBoss EAP 6?
  • I want to add a date stamp into the logging in our JBoss standalone server. I added the below code to the JBOSS_HOME/standalone/configuration/logging.properties but it quickly reverted back after starting the server. Is there somewhere in the CLI or console to change this so it does not get overwritten?
**New:**
formatter.PATTERN.pattern=%d %-5p [%c] (%t) %s%E%n

**Old:**
formatter.PATTERN.pattern=%d{HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%E%n

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.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