-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging Issues #953
Comments
I confirm this behavior: log4j logger settings completely ignored despite being in the classpath, with the connector writing in the console everything as plain text when using Strimzi. |
Yes, because of https://github.com/snowflakedb/snowflake-jdbc/blob/master/src/main/java/net/snowflake/client/log/SFLoggerFactory.java#L46-L66 you have to set |
Thank you for your comments. |
I was going through the issues here and found #785 and https://community.snowflake.com/s/article/How-to-avoid-the-log-INFO-messages-in-the-Kafka-connector-getting-printed-on-to-the-console-while-connecting-to-Snowflake. We have a very similar problem. Our log4j configuration looks like this.
We would like the SnowflakeSinkConnector to stop logging at INFO level and additionally to include the name of the connector from which the logs are pushed. Currently if we have multiple projects and connectors it is impossible to say which connector has a problem and tons of logs entries with log level INFO are produced.
The log entries look like follows.
We are running this together with Strimzi on OpenShift and logging into a file is not an option.
Funnily enough there is this Confluence article at https://www.confluent.io/blog/kafka-connect-improvements-in-apache-kafka-2-3/ which states this.
And still the Snowflake connector somehow manages to insert log entries which can't be assigned to a specific connector instance.
It seems that this at #263 partly solves my problem. I can set the log level to ERROR successfully. EDIT: Nope, still INFO log entries.
And there is another similar issue at #87.
Alright, the solution (actually a workaround) is inside snowflakedb/snowflake-jdbc#1134. You have to set
-Dnet.snowflake.jdbc.loggerImpl=net.snowflake.client.log.SLF4JLogger
for the Snowlake JDBC lib to respect the log settings.The text was updated successfully, but these errors were encountered: