Description
We have a multi-tenant application and need to redact some information.
After searching for extension points, it doesn't currently seem possible to define new classes that intercept/modify the logging pipeline.
I thought I could use Log4j and write a plugin for that, but it seems that ultimately it all gets routed back to JBoss Log Manager:
https://stackoverflow.com/a/68543056/13485494
In the docs, I see that there are
filter
expressions which can be used in
application.properties
, specifically
substitute
:
https://github.com/jboss-logging/jboss-logmanager#filter-expressions
https://github.com/jboss-logging/jboss-logmanager/blob/ee6db025e9dc3b269ff12f7ca5a1ca28008a142c/src/test/java/org/jboss/logmanager/FilterTests.java#L448-L490
But in our case, the rules may get quite complicated and numerous, and may be easier maintained in code.
Is there any way to implement this as something like Log4j 2's
LogEventPatternConverter
plugin?
Thank you =)
Implementation ideas
No response
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Issue actions