public class Log extends Object
if (DEBUG) LOG.debug("removed by the compiler if DEBUG is a false constant")
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static boolean |
ERROR |
static boolean |
INFO |
static Level |
LEVEL
this is the compile time log level
|
static boolean |
WARN |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object m)
prints a debug message
|
void |
debug(Object m,
Throwable t)
prints a debug message
|
void |
error(Object m)
prints an error message
|
void |
error(Object m,
Throwable t)
prints an error message
|
static Log |
getLog(Class<?> c)
Deprecated.
will be removed in 2.0.0; use org.slf4j.LoggerFactory instead.
|
void |
info(Object m)
prints an info message
|
void |
info(Object m,
Throwable t)
prints an info message
|
void |
warn(Object m)
prints a warn message
|
void |
warn(Object m,
Throwable t)
prints a warn message
|
public static final Level LEVEL
public static final boolean DEBUG
public static final boolean INFO
public static final boolean WARN
public static final boolean ERROR
public Log(Class<?> c)
public static Log getLog(Class<?> c)
c - the current classpublic void debug(Object m)
m - a log messagepublic void debug(Object m, Throwable t)
m - a log messaget - a throwable errorpublic void info(Object m)
m - a log messagepublic void info(Object m, Throwable t)
m - a log messaget - a throwable errorpublic void warn(Object m)
m - a log messagepublic void warn(Object m, Throwable t)
m - a log messaget - a throwable errorpublic void error(Object m)
m - a log messageCopyright © 2018 The Apache Software Foundation. All rights reserved.