How to customize date format pattern for access logging in JBoss EAP 7

Solution Verified - Updated -

Issue

  • How do I customize date format pattern for access logging in JBoss EAP 7?
  • A default %t outputs date with a format like [01/Dec/2016:13:45:56 +0900]. I would like to change it like [2016-12-01 13:45:56.789] (with milliseconds but without timezone information). How can I configure this?
  • How do I increase time format precision in JBoss EAP access log?

Environment

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