Ask Your Question

How do I adjust the log level for a single class in SDC?

asked 2017-12-06 11:09:38 -0600

jeff gravatar image

updated 2017-12-06 11:09:48 -0600

I want to enable a finer log level for a particular component or class, but don't want to change the root logger level (which will result in too many messages). How can this be accomplished?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-06 11:12:01 -0600

jeff gravatar image

You can do this by adding a new line to your log config (which can be accessed on disk or via the SDC UI under Logs/Log Configuration). This line should start with log4j.logger. and then contain the fully qualified name of the logger (which is usually the class, but you can check the source code to confirm). For example, to enable TRACE level on the Kafka library consumer class (to help diagnose Kafka consumer issues), you can add this line:
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-12-06 11:09:38 -0600

Seen: 21 times

Last updated: Dec 06 '17