How to change the logging formatter in JBoss EAP 6?
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.propertiesbut 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
