You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom Appender and want to configure a specific ContextDataProvider for this Appender, how can I do it? After reading the documentation and code, I found that ContextDataProvider is loaded through SPI, which means that once I load it through SPI, it will work for all Appenders, but I only want a certain Appender to take effect.
I tried specifying a ContextDataProvider in the config file:
Then I got an error: ERROR StatusConsoleListener MyAppender contains an invalid element or attribute "ContextDataProvider"
what should I do?
The version of log4j I am using is v2.20
The text was updated successfully, but these errors were encountered:
As clearly indicated in the Log4j support page, please use mailing lists for questions!
Issues asking questions will be removed, and you will be asked to post questions to the mailing lists instead.
I have a custom Appender and want to configure a specific ContextDataProvider for this Appender, how can I do it? After reading the documentation and code, I found that ContextDataProvider is loaded through SPI, which means that once I load it through SPI, it will work for all Appenders, but I only want a certain Appender to take effect.
I tried specifying a ContextDataProvider in the config file:
Then I got an error:
ERROR StatusConsoleListener MyAppender contains an invalid element or attribute "ContextDataProvider"
what should I do?
The version of log4j I am using is
v2.20
The text was updated successfully, but these errors were encountered: