Class Log

java.lang.Object
org.apache.parquet.Log

public class Log extends Object
Simple wrapper around java.util.logging Adds compile time log level. The compiler removes completely if statements that reference to a false constant if (DEBUG) LOG.debug("removed by the compiler if DEBUG is a false constant")
  • Field Details

    • LEVEL

      public static final Level LEVEL
      this is the compile time log level
    • DEBUG

      public static final boolean DEBUG
    • INFO

      public static final boolean INFO
    • WARN

      public static final boolean WARN
    • ERROR

      public static final boolean ERROR
  • Constructor Details

    • Log

      public Log(Class<?> c)
  • Method Details

    • getLog

      public static Log getLog(Class<?> c)
      Deprecated.
      will be removed in 2.0.0; use org.slf4j.LoggerFactory instead.
      Parameters:
      c - the current class
      Returns:
      the corresponding logger
    • debug

      public void debug(Object m)
      prints a debug message
      Parameters:
      m - a log message
    • debug

      public void debug(Object m, Throwable t)
      prints a debug message
      Parameters:
      m - a log message
      t - a throwable error
    • info

      public void info(Object m)
      prints an info message
      Parameters:
      m - a log message
    • info

      public void info(Object m, Throwable t)
      prints an info message
      Parameters:
      m - a log message
      t - a throwable error
    • warn

      public void warn(Object m)
      prints a warn message
      Parameters:
      m - a log message
    • warn

      public void warn(Object m, Throwable t)
      prints a warn message
      Parameters:
      m - a log message
      t - a throwable error
    • error

      public void error(Object m)
      prints an error message
      Parameters:
      m - a log message
    • error

      public void error(Object m, Throwable t)
      prints an error message
      Parameters:
      m - a log message
      t - a throwable error