| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LogChute
Base interface that logging systems need to implement. This is the blessed descendant of the old LogSystem interface.
| Field Summary | |
|---|---|
| static int | DEBUG_IDID for debug messages. | 
| static String | DEBUG_PREFIXPrefix string for debug messages. | 
| static int | ERROR_IDID for error messages. | 
| static String | ERROR_PREFIXPrefix string for error messages. | 
| static int | INFO_IDID for info messages. | 
| static String | INFO_PREFIXPrefix string for info messages. | 
| static int | TRACE_IDID for trace messages. | 
| static String | TRACE_PREFIXPrefix string for trace messages. | 
| static int | WARN_IDID for warning messages. | 
| static String | WARN_PREFIXPrefix string for warn messages. | 
| Method Summary | |
|---|---|
|  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 | 
| Field Detail | 
|---|
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
| Method Detail | 
|---|
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 - 
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||