Logger (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.config

Class Logger



  • public class Logger
    extends Object
    Wrapper around Log to conditionally format messages if a specified log level is enabled.
    Version:
    $Id: $Id
    Author:
    sduskis
    • Field Detail

      • log

        protected final org.apache.commons.logging.Log log
    • Constructor Detail

      • Logger

        public Logger(Class<?> logClass)
        Constructor for Logger.
        Parameters:
        logClass - a Class object.
    • 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 - a Throwable 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 - a Throwable 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 - a Throwable 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 - a Throwable object.
        args - Arguments for format string.
        See Also:
        Log.error(java.lang.Object)
      • fatal

        public void fatal(String message,
                          Object... args)
        fatal
        Parameters:
        message - a String object.
        args - a Object object.
        See Also:
        Log.fatal(java.lang.Object)
      • fatal

        public void fatal(String message,
                          Throwable t,
                          Object... args)
        fatal
        Parameters:
        message - Format string.
        t - a Throwable object.
        args - Arguments for format string.
        See Also:
        Log.fatal(java.lang.Object)
      • getLog

        public org.apache.commons.logging.Log getLog()
        Get the underlying Log