log4j2 support kafka

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

log4j2 support kafka

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:
  <Kafka name="kafka" topic=“xxx">
        <PatternLayout pattern="%message"/>
        <Property name="bootstrap.servers”><ip>:9092</Property>
      </Kafka>

Thanks!