Ask Your Question

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

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

jeff gravatar image

updated 2018-08-17 17:06:03 -0500

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 -0500

jeff gravatar image

updated 2018-08-17 17:08:02 -0500

You can do this by adding a new line to your log config (which can be accessed on disk at $SDC_CONF/ 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:

To log an entire package (ex: everything for the JDBC multi-table origin, which happens to live in package com.streamsets.pipeline.stage.origin.jdbc.table), use a line like this:
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 1,049 times

Last updated: Aug 17 '18