danielwegener / logback-kafka-appender

Logback appender for Apache Kafka
Apache License 2.0
644 stars 262 forks source link

Question: is it possible to use a logger other than root? #101

Closed schiric closed 3 years ago

schiric commented 3 years ago

Hi, is it possible to use kafka-appender only with a specific logger specified in logback.xml file? ES.

--> %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n logback.test bootstrap.servers=localhost:30400,localhost:30401 acks=0 linger.ms=1000 max.block.ms=0 security.protocol=SASL_SSL sasl.mechanism=PLAIN ssl.endpoint.identification.algorithm= ssl.truststore.location=/certs/kafka.client.truststore.jks ssl.truststore.password=mypwd sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="admin" password="";
danielwegener commented 3 years ago

I think this question can be answered best by the logback documentation. This project here is a plain logback appender. Configuring log loggers is out of scope.