Package com.gpudb

Class GPUdbLogger


  • public class GPUdbLogger
    extends Object
    • Constructor Detail

      • GPUdbLogger

        public GPUdbLogger()
    • Method Detail

      • initializeLogger

        public static void initializeLogger()
        Initializes the default logger with the value of the 'logging.level.com.gpudb' system property. Log level can be set when executing a jar with a '-Dlogging.level.com.gpudb=DEBUG' arg.
      • info

        public static void info​(String message)
      • error

        public static void error​(String message)
      • error

        public static void error​(Throwable exception,
                                 String message)
      • warn

        public static void warn​(String message)
      • debug

        public static void debug​(String message)
      • trace

        public static void trace​(String message)
      • isDebugEnabled

        public static boolean isDebugEnabled()
      • isTraceEnabled

        public static boolean isTraceEnabled()
      • debug_with_info

        public static void debug_with_info​(String message)
        Print extra information with the debug message.
      • trace_with_info

        public static void trace_with_info​(String message)
        Print extra information with the trace message.
      • setLoggingLevel

        public static boolean setLoggingLevel​(String logLevel)
        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
        Note: slf4j-simple does not support runtime log level changes. For slf4j-simple, set the level via system property at startup: -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG
        Parameters:
        logLevel - One of the supported log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF. null value is treated as 'OFF'.
        Returns:
        true if the log level was successfully set, false if no supported backend was detected or an error occurred.
      • setDependencyLogLevel

        public static boolean setDependencyLogLevel​(String loggerName,
                                                    String logLevel)
        Sets the log level for a dependent library logger. Useful for silencing verbose third-party libraries.
        Parameters:
        loggerName - The fully qualified logger name (e.g., "org.apache.http")
        logLevel - The desired log level
        Returns:
        true if successful, false otherwise