com.google.cloud.bigtable.config
Class Logger
- java.lang.Object
-
- com.google.cloud.bigtable.config.Logger
-
public class Logger extends Object
Wrapper aroundLog
to conditionally format messages if a specified log level is enabled.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Field Summary
Fields Modifier and Type Field and Description protected org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor and Description Logger(Class<?> logClass)
Constructor for Logger.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
debug(String message, Object... args)
debugvoid
debug(String message, Throwable t, Object... args)
debugvoid
error(String message, Object... args)
errorvoid
error(String message, Throwable t, Object... args)
errorvoid
fatal(String message, Object... args)
fatalvoid
fatal(String message, Throwable t, Object... args)
fatalorg.apache.commons.logging.Log
getLog()
Get the underlyingLog
void
info(String message, Object... args)
infovoid
info(String message, Throwable t, Object... args)
infovoid
trace(String message, Object... args)
tracevoid
warn(String message, Object... args)
warnvoid
warn(String message, Throwable t, Object... args)
warn
-
-
-
Method Detail
-
trace
public void trace(String message, Object... args)
trace- Parameters:
message
- Format string.args
- Arguments for format string.- See Also:
Log.trace(java.lang.Object)
-
debug
public void debug(String message, Object... args)
debug- Parameters:
message
- Format string.args
- Arguments for format string.- See Also:
Log.debug(java.lang.Object)
-
debug
public void debug(String message, Throwable t, Object... args)
debug- Parameters:
message
- Format string.t
- aThrowable
object.args
- Arguments for format string.- See Also:
Log.debug(java.lang.Object)
-
info
public void info(String message, Object... args)
info- Parameters:
message
- Format string.args
- Arguments for format string.- See Also:
Log.info(java.lang.Object)
-
info
public void info(String message, Throwable t, Object... args)
info- Parameters:
message
- Format string.t
- aThrowable
object.args
- Arguments for format string.- See Also:
Log.info(java.lang.Object)
-
warn
public void warn(String message, Object... args)
warn- Parameters:
message
- Format string.args
- Arguments for format string.- See Also:
Log.warn(java.lang.Object)
-
warn
public void warn(String message, Throwable t, Object... args)
warn- Parameters:
message
- Format string.t
- aThrowable
object.args
- Arguments for format string.- See Also:
Log.warn(java.lang.Object)
-
error
public void error(String message, Object... args)
error- Parameters:
message
- Format string.args
- Arguments for format string.- See Also:
Log.error(java.lang.Object)
-
error
public void error(String message, Throwable t, Object... args)
error- Parameters:
message
- Format string.t
- aThrowable
object.args
- Arguments for format string.- See Also:
Log.error(java.lang.Object)
-
fatal
public void fatal(String message, Throwable t, Object... args)
fatal- Parameters:
message
- Format string.t
- aThrowable
object.args
- Arguments for format string.- See Also:
Log.fatal(java.lang.Object)
-
getLog
public org.apache.commons.logging.Log getLog()
Get the underlyingLog
-
-