It's easy, just remove log4j jar and config/logging.yml, then add log4j2.xml, log4j-api, log4j-core, log4j-slf4j-impl and slf4j-api jars to the lib folder. Then you can set up async appenders with log4j2, which are 18x more performant than log4j 1.x appenders.
Jörg On Tue, Feb 17, 2015 at 5:42 PM, Mohamed Amine ABDESSEMED < [email protected]> wrote: > We've set up elasticsearch logging as described here logging > elasticsearch events with logstash > <http://www.elasticsearch.org/blog/logging-elasticsearch-events-with-logstash-and-elasticsearch/> > and > we want to use an AsyncAppender instead of using a SocketAppender directly > in order to avoid freeze times while logging but only xml log4j conf file > format supports AsyncAppender. > > Is there another way to achieve this since elasticsearch doesn't use xml > conf files? > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/095b157e-f2f4-4385-8205-dd9ff41f5f7e%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/095b157e-f2f4-4385-8205-dd9ff41f5f7e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2WCNunGdWx5VwytYUv-1TCWNgae%3DQixSwx9014HWpzw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
