vy commented on issue #2814: URL: https://github.com/apache/logging-log4j2/issues/2814#issuecomment-2277705318
> The JPMS access problems should be fixed by #2815. Great job @ppkarwasz! > Since Log4j plugins are retrieved by plugin name and not class name, we could create a new plugin called "JsonLayout" that returns a properly configured `JsonTemplateLayout`. @vy, what do you think? This is not possible, since, quoting from the JSON Template Layout manual: > [`JsonLayout.json`] Models the exact structure generated by the deprecated `JsonLayout` with the exception of `thrown` field. `JsonLayout` serializes the `Throwable` as is via Jackson `ObjectMapper`, whereas `JsonLayout.json` event template employs the `StackTraceElementLayout.json` stack trace template for stack traces to generate a document-store-friendly flat structure. In short, the `thrown` property of the produced JSONs will differ. I had thought of doing something similar for GELF Layout, but in that case, there is the compression option we need to deal with. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
