Package com.gpudb
Class GPUdbLogger
- java.lang.Object
-
- com.gpudb.GPUdbLogger
-
public class GPUdbLogger extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringAPI_LOGGER_NAMEprotected static StringDEP_LIB_APACHE_CLIENT_LOGGER
-
Constructor Summary
Constructors Constructor Description GPUdbLogger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddebug(String message)static voiddebug_with_info(String message)Print extra information with the debug message.static voiderror(String message)static voiderror(Throwable exception, String message)static voidinfo(String message)static voidinitializeLogger()Initializes the default logback logger with the value of the 'logging.level.com.gpudb' system property.static booleanisDebugEnabled()static booleanisTraceEnabled()static booleansetLoggingLevel(String logLevel)Dynamically set the default 'logback' logger 'com.gpudb' log level.static voidtrace(String message)static voidtrace_with_info(String message)Print extra information with the trace message.static voidwarn(String message)
-
-
-
Field Detail
-
API_LOGGER_NAME
protected static final String API_LOGGER_NAME
- See Also:
- Constant Field Values
-
DEP_LIB_APACHE_CLIENT_LOGGER
protected static final String DEP_LIB_APACHE_CLIENT_LOGGER
- See Also:
- Constant Field Values
-
-
Method Detail
-
initializeLogger
public static void initializeLogger()
Initializes the default logback 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)
-
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 default 'logback' logger 'com.gpudb' log level. Does nothing and logs warning if 'logback' is not the slf4f logger implementation, eg. log4j.- Parameters:
logLevel- One of the supported log levels: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF.nullvalue is considered as 'OFF'.
-
-