Re: log4j2 support kafka

2017-04-11 Thread Mario Copperfield
I’m sorry but it seems can not work. On 11 Apr 2017, 23:08 +0800, Matt Sicker , wrote: > appender.k.type = Kafka > appender.k.name = kafka > appender.k.topic = xxx > appender.k.layout.type = PatternLayout > appender.k.layout.pattern = %message > appender.k.property.bootstrap.servers = :9092 > > At

Re: log4j2 support kafka

2017-04-11 Thread Mario Copperfield
I’m sorry but it seems can not work. On Tue, Apr 11, 2017 at 11:08 PM, Matt Sicker wrote: > appender.k.type = Kafka > appender.k.name = kafka > appender.k.topic = xxx > appender.k.layout.type = PatternLayout > appender.k.layout.pattern = %message > appender.k.property.bootstrap.servers = :9092 >

Re: About log4j2 support Kafka

2017-04-11 Thread Mario Copperfield
> Hi, all >   I notice  that the logs produced by log4j2 can be written into Kafka. >   I want to know if the log4j2 configuration file written in .properties? >   If it can, how do i name the ‘properties’ in .xml as flowing: >    >         >        

log4j2 support kafka

2017-04-11 Thread Mario Copperfield
Hi, all   I notice  that the logs produced by log4j2 can be written into Kafka.   I want to know if the log4j2 configuration file written in .properties?   If it can, how do i name the ‘properties’ in .xml as flowing:                   

About log4j2 support Kafka

2017-04-11 Thread Mario Copperfield
> Hi, all >   I notice  that the logs produced by log4j2 can be written into Kafka. >   I want to know if the log4j2 configuration file written in .properties? >   If it can, how do i name the ‘properties’ in .xml as flowing: >    >         >        

Re: log4j2 support kafka

2017-04-11 Thread Matt Sicker
appender.k.type = Kafka appender.k.name = kafka appender.k.topic = xxx appender.k.layout.type = PatternLayout appender.k.layout.pattern = %message appender.k.property.bootstrap.servers = :9092 At least that looks like it should work. Rename "k" to whatever you want as it's mostly a way to keep a f

log4j2 support kafka

2017-04-11 Thread Mario Copperfield
Hi, all I notice that the logs produced by log4j2 can be written into Kafka. I want to know if the log4j2 configuration file written in .properties? If it can, how do i name the ‘properties’ in .xml as flowing: