Class BigQueryJdbcResultSetLogger (1.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclassBigQueryJdbcResultSetLogger
High-performance logging facade for ResultSet and its related classes.
This is deliberately not a java.util.logging.Logger. Every Logger
instance registers itself as a child of its parent under a JVM-wide lock and that registration is
never released, so a logger-per-ResultSet leaks. Instead, one real BigQueryJdbcCustomLogger is created per class and shared; this facade holds a reference to it
plus the connection ID of the ResultSet it serves.
Hot-path methods (finestTrace etc.) set the source class and method explicitly, so no
stack-trace walking (caller inference) happens for them. The connection ID is stamped into
LogRecord.getParameters()[0] on every record so PerConnectionFileHandler can route the
record even when the thread-local MDC (mapped diagnostic context — the per-thread connection ID
set by the JDBC proxy) is empty, which is the normal case for un-proxied ResultSet calls.
Stamps the connection ID into params[0] and forwards to the shared logger. Does not
touch the record's source class/method: hot-path callers set them explicitly, and cold-path
callers (severe, warning) rely on BigQueryJdbcCustomLogger.BigQueryJdbcLogRecord to infer them lazily.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-18 UTC."],[],[]]