apache / logging-log4cxx

Apache Log4cxx is a C++ port of Apache Log4j
http://logging.apache.org/log4cxx
Apache License 2.0
268 stars 121 forks source link

Support for filters in PropertyConfigurator #195

Open avielfedida opened 1 year ago

avielfedida commented 1 year ago

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 ...

rm5248 commented 1 year ago

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.