Add filter configuration to log appender
See original GitHub issueIs your feature request related to a problem? Please describe. Agent will instrument all log appenders so that all logs will be exported to collector. I just want to export logs on specified appenders.
Describe the solution you’d like
I think we can add configuration to filter exporting logs by appender name or log level. Configurations maybe like otel.instrumentation.log.enabled-appender-names
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Log4j Filters - Apache Logging Services
Appender Filters are used to determine if a specific Appender should handle the formatting and publication of the event.
Read more >Intro to Log4j2 - Appenders, Layouts and Filters - Baeldung
This article, using an example rich approach, introduces Log4J 2 Appender, Layout and Filter concepts.
Read more >Log4j2 Filter particular level in apender - Stack Overflow
In this case Log4J will log all messages from Level.TRACE to Level.DEBUG, all levels below Level.DEBUG will be ignored. Share.
Read more >org.apache.log4j.Appender.addFilter java code examples
How to use. addFilter. method. in. org.apache.log4j.Appender ... Creates console appender with some reasonable default logging settings.
Read more >Configuring log4j to filter out unwanted messages in ...
log4j has a configuration named StringMatchFilter with which we can take a decision to display or not an entry in the log if...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was assuming this issue was about “appender name”, so that you could configure one appender with the particular configuration that you want, and then ask the javaagent to pick up only logs that flow through that one appender?
Yes let me give a try !!