Repository navigation
[docs] What client-v2 and jdbc-v2 log, and a safe logging configuration - #3301
Open
LjungeldTheHelper wants to merge 2 commits into
Open
LjungeldTheHelper wants to merge 2 commits into
LjungeldTheHelper wants to merge 2 commits into
Conversation
…ion (ClickHouse#3295) Adds copy-ready Logback and Log4j 2 configurations that keep the client, the driver and the Apache HttpClient header and wire loggers (unshaded, client-v2 `all` and clickhouse-jdbc-all names) at INFO, and documents the logging contract of client-v2 and jdbc-v2. Corrects the shaded logger prefix of clickhouse-jdbc-all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gs (ClickHouse#3295) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LjungeldTheHelper
force-pushed
the
docs/3295-v2-safe-logging
branch
from
November 9, 2026 21:32
e658d62 to
5e194b1
Compare
5 tasks done
chernser
requested changes
Nov 10, 2026
chernser
left a comment
Contributor
There was a problem hiding this comment.
Review this part again. Recently we have disabled any apache client logging so this part is outdated.
AI review gate — the gate never ran on this headThe org-required gate workflow has no run on What to do: a maintainer runs History (latest 5 heads, newest first)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documentation for #3295. It describes the logging behavior introduced by #3300, so merge it after #3300. The
branch is based on
mainand contains only the documentation commit.docs/clickhouse-docs/index.mdx, Logging:values, full URLs and query strings, configuration values, client name and metadata, query IDs, exception
messages), the use of
ERROR/WARN/DEBUG, and metrics, spans, or a packet capture with test credentials fordeeper diagnosis.
logback.xmlandlog4j2.xmlthat keepcom.clickhouseand theApache HttpClient header and wire loggers at
INFO, with the two V2 packages to switch toDEBUGfor a shortdiagnosis and
OFFas the alternative. The configuration covers the unshaded names and both shaded prefixes.com.clickhouse.shaded.isclient-v2with theallclassifier;clickhouse-jdbc-allrelocates tocom.clickhouse.client.internal.and also contains the unshaded names(checked in the published
clickhouse-jdbc-all0.11.0 jar).docs/clickhouse-docs/jdbc.mdx, Troubleshooting → Logging: links to the two sections.No code changes.
Checklist
🤖 Generated with Claude Code
Update after review of #3300 — LjungeldTheHelper, 2026-11-09 13:33 PST
"What the client and the driver log" now matches #3300 after its review: query IDs and the server address are logged with request failures and server errors (
unknownwithout a query ID), logged failures carry the stack trace, aTRACElevel line is added, and query IDs and exception messages are removed from the "never logged" list.jdbc.mdxsays that query IDs are logged. Rebased ontomain.Note
Low Risk
Documentation-only changes with no runtime or security-impacting code.
Overview
Adds Java integration docs for client-v2 and jdbc-v2 logging that align with the behavior from #3300.
The HTTP wire logs note is expanded to distinguish shaded HttpClient logger prefixes (
com.clickhouse.shaded.*vscom.clickhouse.client.internal.*forclickhouse-jdbc-all).New sections What the client and the driver log and Safe logging configuration spell out what is never logged (SQL, credentials, bodies, etc.), what is logged on failures (query IDs, server address, stack traces), and how
ERROR/WARN/DEBUG/TRACEare used. Copy-ready Logback and Log4j 2 examples pincom.clickhouseand all Apache HttpClient header/wire logger variants toINFO.jdbc.mdx Troubleshooting → Logging now points readers to those sections for JDBC-specific guidance.
Reviewed by Cursor Bugbot for commit 5e194b1. Bugbot is set up for automated code reviews on this repo. Configure here.