AlexxeyKa opened a new issue, #1414: URL: https://github.com/apache/logging-log4j2/issues/1414
Hello, I would like to request that the `org.apache.logging.slf4j.Log4jMarker` class be made `public` once again, as it was prior to version `2.19.0`. Having markers in the `LogEvent` is a powerful mechanism for passing custom markers with custom fields inside. Previously, it was possible to implement a custom marker and pass it through the `log4j` logger as a `Log4jMarker`, which could then be caught in a custom `FieldProvider`, analyzed, and acted upon. However, with the release of version `2.19.0`, this functionality was removed by making the `Log4jMarker` class `package-private`. As a result, all custom markers are converted into `Log4jMarker` inside the `Log4jMarkerFactory`, and only the name and parents fields are retained, which is unacceptable for our use case. Therefore, I request that the `Log4jMarker` class be made public once again, in order to allow for the same level of flexibility and customization that was available prior to version `2.19.0`. Additionally, I would like to note that the `Log4jMarker` constructor remains `public`, so making the class itself `public` should not pose any security concerns. Thank you for your consideration. -- 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]
