Search code examples
propertieslog4jasyncappender

AsyncAppender in log4j.properties file


I'm having some trouble with this, and even though I've searched for an answer, couldn't find it yet.

I've seen a lot of different log4j configurations in order to use the AsyncAppender, anyway, none of them was related to a .properties configuration file.

I've tried different configurations on my own, but no success at all when trying to use the asyncAppender with a SocketAppender.

Can the AsyncAppender be configured on the .properties file, or does it need to be configured by code/xml configuration?

Thanks in advance!


Solution

  • The answer is: no, there's no way to configure it via properties file.

    AsyncAppender needs to be configured by code/xml.

    : )