-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport PR #14727 to 8.5: Avoid the wrapping of LogstashMessageFacto…
…ry with log4j's MessageFactory adapter #14741 Starting with Log4j2 2.6 if a subclass of MessageFactory associated with an Logger instance is not subclass of MessageFactory2, then it's wrapped with MessageFactory2Adapter. This trigger a log4j warn log that, when a class subclasses LogStash::Plugin for example, is noisy and report about a Logger is not associated with the default MessagedFactory (LogstashMessageFactory) every time a subclass of Plugins is instantiated. This commit adapt LogstashMessageFactory to implement the MessagedFactory2 instead of the older MessageFactory to avoid the wrapping with the adapter class. (cherry picked from commit 05bfaff) Co-authored-by: Andrea Selva <[email protected]>
- Loading branch information
1 parent
41c8478
commit 8b920e6
Showing
1 changed file
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters