添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Log redaction in Quarkus (JBoss Log Manager) #33392

Closed

Description

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

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Assignees

    No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions