How do I add a custom filter in log4cplus?

前端 未结 1 894
别那么骄傲
别那么骄傲 2021-01-07 02:08

This is a followup to this question on conditional logging.

I found examples in the log4cplus test directory of how to configure filters in the properties file (so

相关标签:
1条回答
  • 2021-01-07 02:31

    The error was a result of mislocating the libraries built from log4cplus.

    So, the example above is the way to implement a custom filter in log4cplus. Unless anyone objects I will leave this here as there are very few examples of log4cplus filters on the web.

    0 讨论(0)
提交回复
热议问题