Skip to content

Conversation

@svrc
Copy link

@svrc svrc commented May 16, 2017

This should enable Kafka logging in Log4J2 now, which was broken since the switch to Log4J2. Also README now clarifies how to set the Kafka log level in the Log4j2 properties.

@jordansissel
Copy link
Contributor

Code looks good, but I haven't tested yet.

@jordansissel
Copy link
Contributor

Confirmed with this code Kafka outputs more logging, however, setting the log level seems to have no effect:

logger.kafka.name=org.apache.kafka
logger.kafka.appenderRef.console.ref=console
logger.kafka.level=warn

Kafka still outputs INFO logs to console.

@svrc
Copy link
Author

svrc commented Oct 2, 2017

I admit I hadn't tested this to make logs less verbose (i.e. WARN), but it worked for me to make them more verbose (i.e. DEBUG). I can see if I can replicate.

@jordansissel
Copy link
Contributor

@svrc-pivotal I tried debug initially, but I didn't see any extra logging (no [DEBUG] in the output), so I tried warn instead.

I am only testing startup (output starts up, does nothing else) though, not message processing.

@svrc
Copy link
Author

svrc commented Oct 2, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants