Package org.apache.parquet
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 constantif (DEBUG) LOG.debug("removed by the compiler if DEBUG is a false constant")
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddebug(Object m)prints a debug messagevoiddebug(Object m, Throwable t)prints a debug messagevoiderror(Object m)prints an error messagevoiderror(Object m, Throwable t)prints an error messagestatic LoggetLog(Class<?> c)Deprecated.will be removed in 2.0.0; use org.slf4j.LoggerFactory instead.voidinfo(Object m)prints an info messagevoidinfo(Object m, Throwable t)prints an info messagevoidwarn(Object m)prints a warn messagevoidwarn(Object m, Throwable t)prints a warn message
-
-
-
Field Detail
-
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 Detail
-
Log
public Log(Class<?> c)
-
-
Method Detail
-
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 messaget- 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 messaget- 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 messaget- a throwable error
-
error
public void error(Object m)
prints an error message- Parameters:
m- a log message
-
-