Package org.apache.parquet
Class Log
java.lang.Object
org.apache.parquet.Log
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprints a debug messagevoidprints a debug messagevoidprints an error messagevoidprints an error messagestatic LogDeprecated.will be removed in 2.0.0; use org.slf4j.LoggerFactory instead.voidprints an info messagevoidprints an info messagevoidprints a warn messagevoidprints a warn message
-
Field Details
-
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
-
-
Method Details
-
getLog
Deprecated.will be removed in 2.0.0; use org.slf4j.LoggerFactory instead.- Parameters:
c- the current class- Returns:
- the corresponding logger
-
debug
prints a debug message- Parameters:
m- a log message
-
debug
prints a debug message- Parameters:
m- a log messaget- a throwable error
-
info
prints an info message- Parameters:
m- a log message
-
info
prints an info message- Parameters:
m- a log messaget- a throwable error
-
warn
prints a warn message- Parameters:
m- a log message
-
warn
prints a warn message- Parameters:
m- a log messaget- a throwable error
-
error
prints an error message- Parameters:
m- a log message
-
error
prints an error message- Parameters:
m- a log messaget- a throwable error
-