ppkarwasz commented on code in PR #3338: URL: https://github.com/apache/logging-log4j2/pull/3338#discussion_r1898977120
########## log4j-core/src/main/java/org/apache/logging/log4j/core/util/internal/instant/InstantPatternDynamicFormatter.java: ########## @@ -515,83 +326,42 @@ private static List<PatternSequence> mergeDynamicSequences( * * <pre>{@code * [ - * composite( - * sequences=[ - * dynamic(pattern="yyyy", precision=YEARS), - * static(literal="-"), - * dynamic(pattern="MM", precision=MONTHS), - * static(literal="-"), - * dynamic(pattern="dd", precision=DAYS), - * static(literal="T"), - * dynamic(pattern="HH", precision=HOURS), - * static(literal=":"), - * dynamic(pattern="mm", precision=MINUTES), - * static(literal=":") - * ], - * precision=MINUTES), - * composite( - * sequences=[ - * dynamic(pattern="ss", precision=SECONDS), - * static(literal="."), - * dynamic(pattern="SSS", precision=MILLISECONDS) - * ], - * precision=MILLISECONDS), - * dynamic(pattern="X", precision=HOURS), + * dynamic(pattern="yyyy-MM-dd'T'HH:mm", precision=MINUTES), Review Comment: I refactored the javadoc in https://github.com/apache/logging-log4j2/pull/3338/commits/07799647c5f381a9199f715b0e67bb563508c551. I believe that an example that uses the three implementation of `PatternSequence` has still a value: users can more easily get the whole merging picture, even if the merging behavior is delegated. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org