Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for filters in PropertyConfigurator #195

Open
avielfedida opened this issue Mar 16, 2023 · 1 comment
Open

Support for filters in PropertyConfigurator #195

avielfedida opened this issue Mar 16, 2023 · 1 comment

Comments

@avielfedida
Copy link

avielfedida commented Mar 16, 2023

From the docs[https://logging.apache.org/log4cxx/latest_stable/classlog4cxx_1_1PropertyConfigurator.html]:
"
The PropertyConfigurator does not handle the advanced configuration features supported by the DOMConfigurator such as support for Filters, custom ErrorHandlers, nested appenders such as the AsyncAppender, etc.
"
Did anyone added or attempted to add support for filter when using PropertyConfigurator and a properties file such as
...
log4j.appender..filter.=Custom or built in filter
log4j.appender..filter..param1=X
log4j.appender..filter..param2=Y
...

@avielfedida avielfedida changed the title Support for filters in Support for filters in PropertyConfigurator Mar 16, 2023
@rm5248
Copy link
Contributor

rm5248 commented Mar 16, 2023

this does not work and is unlikely to be added at this point, since filters can be rather complicated and not easy to configure in a properties-like configuration. You are welcome to try and add support, but it would be less work to simply convert your configuration file to XML rather than try to use properties.

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

No branches or pull requests

2 participants