public interface LogChute
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG_ID
ID for debug messages.
|
static String |
DEBUG_PREFIX
Prefix string for debug messages.
|
static int |
ERROR_ID
ID for error messages.
|
static String |
ERROR_PREFIX
Prefix string for error messages.
|
static int |
INFO_ID
ID for info messages.
|
static String |
INFO_PREFIX
Prefix string for info messages.
|
static int |
TRACE_ID
ID for trace messages.
|
static String |
TRACE_PREFIX
Prefix string for trace messages.
|
static int |
WARN_ID
ID for warning messages.
|
static String |
WARN_PREFIX
Prefix string for warn messages.
|
Modifier and Type | Method and Description |
---|---|
void |
init(RuntimeServices rs)
Initializes this LogChute.
|
boolean |
isLevelEnabled(int level)
Tell whether or not a log level is enabled.
|
void |
log(int level,
String message)
Send a log message from Velocity.
|
void |
log(int level,
String message,
Throwable t)
Send a log message from Velocity along with an exception or error
|
static final String TRACE_PREFIX
static final String DEBUG_PREFIX
static final String INFO_PREFIX
static final String WARN_PREFIX
static final String ERROR_PREFIX
static final int TRACE_ID
static final int DEBUG_ID
static final int INFO_ID
static final int WARN_ID
static final int ERROR_ID
void init(RuntimeServices rs) throws Exception
rs
- Exception
void log(int level, String message)
level
- message
- void log(int level, String message, Throwable t)
level
- message
- t
- boolean isLevelEnabled(int level)
level
- Copyright © 2000–2016. All rights reserved.