log4cxx — is it possible to configure a custom appender with custom arguments from a config file?
问题 I need to write a custom appender in log4cxx. This answer describes how to do it. In Java, in log4j, it is possible for a custom appender to devise custom parameters. I add a property and a getter and setter: private int myParameter = 0; public void setMyParameter(int p) { myParameter = p; } public int getMyParameter() { return myParameter; } Then I can use myParameter in configuration file, and the framework somehow knows how to configure my appender with it. Question: does log4cxx have a