Package com.gpudb
Class GPUdbLogger
java.lang.Object
com.gpudb.GPUdbLogger
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiddebug_with_info(String message) Print extra information with the debug message.static voidstatic voidstatic voidstatic voidInitializes the default logger with the value of the ‘logging.level.com.gpudb’ system property.static booleanstatic booleanstatic booleansetDependencyLogLevel(String loggerName, String logLevel) Sets the log level for a dependent library logger.static booleansetLoggingLevel(String logLevel) Dynamically set the log level for the ‘com.gpudb’ logger at runtime.static voidstatic voidtrace_with_info(String message) Print extra information with the trace message.static void
Method Details
setLoggingLevel
Dynamically set the log level for the ‘com.gpudb’ logger at runtime. Supports multiple SLF4J backend implementations:- Logback - Native SLF4J implementation (most common)
- Log4j2 - Apache Log4j 2.x via slf4j-log4j2 binding
- JUL - Java Util Logging via slf4j-jdk14 binding
-Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUGParameters:logLevel- One of the supported log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF.nullvalue is treated as ‘OFF’.Returns:trueif the log level was successfully set,falseif no supported backend was detected or an error occurred.