public class Log extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Log.Logger
Performs the actual logging.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG
True when the DEBUG level will be logged.
|
static boolean |
ERROR
True when the ERROR level will be logged.
|
static boolean |
INFO
True when the INFO level will be logged.
|
static int |
LEVEL_DEBUG
Debug messages.
|
static int |
LEVEL_ERROR
Critical errors.
|
static int |
LEVEL_INFO
Informative messages.
|
static int |
LEVEL_NONE
No logging at all.
|
static int |
LEVEL_TRACE
Trace messages.
|
static int |
LEVEL_WARN
Important warnings.
|
static boolean |
TRACE
True when the TRACE level will be logged.
|
static boolean |
WARN
True when the WARN level will be logged.
|
Modifier and Type | Method and Description |
---|---|
static void |
DEBUG() |
static void |
debug(String message) |
static void |
debug(String category,
String message) |
static void |
debug(String category,
String message,
Throwable ex) |
static void |
debug(String message,
Throwable ex) |
static void |
ERROR() |
static void |
error(String message) |
static void |
error(String category,
String message) |
static void |
error(String category,
String message,
Throwable ex) |
static void |
error(String message,
Throwable ex) |
static void |
INFO() |
static void |
info(String message) |
static void |
info(String category,
String message) |
static void |
info(String category,
String message,
Throwable ex) |
static void |
info(String message,
Throwable ex) |
static void |
NONE() |
static void |
set(int level)
Sets the level to log.
|
static void |
setLogger(Log.Logger logger)
Sets the logger that will write the log messages.
|
static void |
TRACE() |
static void |
trace(String message) |
static void |
trace(String category,
String message) |
static void |
trace(String category,
String message,
Throwable ex) |
static void |
trace(String message,
Throwable ex) |
static void |
WARN() |
static void |
warn(String message) |
static void |
warn(String category,
String message) |
static void |
warn(String category,
String message,
Throwable ex) |
static void |
warn(String message,
Throwable ex) |
public static final int LEVEL_NONE
public static final int LEVEL_ERROR
public static final int LEVEL_WARN
public static final int LEVEL_INFO
public static final int LEVEL_DEBUG
public static final int LEVEL_TRACE
public static boolean ERROR
public static boolean WARN
public static boolean INFO
public static boolean DEBUG
public static boolean TRACE
public static void set(int level)
public static void NONE()
public static void ERROR()
public static void WARN()
public static void INFO()
public static void DEBUG()
public static void TRACE()
public static void setLogger(Log.Logger logger)
public static void error(String message)
public static void warn(String message)
public static void info(String message)
public static void debug(String message)
public static void trace(String message)
Copyright © 2016. All rights reserved.