Replies: 1 comment 10 replies
-
Thanks for the question! Could you tell us more about your use case? For example, are you trying to introspect the effective Log4j Core configuration at runtime, or are you attempting to parse the output of a If you're aiming to parse logs, keep in mind that most formats produced by As for the default datetime pattern, it's currently Let us know more about what you're trying to achieve—we're happy to offer more specific guidance! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As of now, I'm using
%d{DEFAULT}
date-time layout, since version 2.25.0, allorg.apache.logging.log4j.core.util.datetime
had become deprecated, includingFixedDateFormat
which I've used itsFixedDateFormat.FixedFormat.DEFAULT.getPattern()
.It seems like the new way to derive the default pattern is through
org.apache.logging.log4j.core.pattern.DatePatternConverter#DEFAULT_PATTERN
, but there is no way to use it as it's not public in any way.Is there a workaround?
Beta Was this translation helpful? Give feedback.
All reactions