logging-log4cxx icon indicating copy to clipboard operation
logging-log4cxx copied to clipboard

Support for filters in PropertyConfigurator

Open avielfedida opened this issue 1 year ago • 1 comments

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.<appenderName>.filter.<FilterName>=Custom or built in filter log4j.appender.<appenderName>.filter.<FilterName>.param1=X log4j.appender.<appenderName>.filter.<FilterName>.param2=Y ...

avielfedida avatar Mar 16 '23 14:03 avielfedida

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.

rm5248 avatar Mar 16 '23 22:03 rm5248