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) |
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
- public void info(Object m)
m
- public void warn(Object m)
m
- public void error(Object m)
m
- Copyright © 2015. All rights reserved.