You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ppkarwasz (via GitHub)" <gi...@apache.org> on 2024/10/17 21:37:50 UTC

Re: [I] Fix `RegexFilter` pattern flags (logging-log4j2)

ppkarwasz commented on issue #3086:
URL: https://github.com/apache/logging-log4j2/issues/3086#issuecomment-2420642938

   Hi @JWT007,
   
   Thank you for helping us checking our documentation against the automatically-generated plugin reference. We created the plugin reference exactly for this purpose and we are happy you find it useful.
   
   This is a longstanding [LOG4J2-696](https://issues.apache.org/jira/browse/LOG4J2-696) bug, old as Log4j 2 itself. The attempted solution has no chance to work, since the `@PluginElement` annotation only accepts [classes annotated with `@Plugin`](https://logging.apache.org/log4j/2.x/manual/plugins.html) and `String` is final.
   
   Since you can embed pattern flags in the regex (e.g. `(?i)` instead of `CASE_SENSITIVE`), I believe that we can just remove the annotation on the parameter.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org