|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.runtime.log.AvalonLogChute
public class AvalonLogChute
Implementation of a Avalon logger.
Field Summary | |
---|---|
static java.lang.String |
AVALON_LOGGER
|
static java.lang.String |
AVALON_LOGGER_FORMAT
|
static java.lang.String |
AVALON_LOGGER_LEVEL
|
Fields inherited from interface org.apache.velocity.runtime.log.LogChute |
---|
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX |
Constructor Summary | |
---|---|
AvalonLogChute()
|
Method Summary | |
---|---|
protected void |
finalize()
Also do a shutdown if the object is destroy()'d. |
void |
init(RuntimeServices rs)
Initializes this LogChute. |
void |
init(java.lang.String file)
Deprecated. This method should not be used. It is here only to provide backwards compatibility for the deprecated AvalonLogSystem class, in case anyone used it and this method directly. |
boolean |
isLevelEnabled(int level)
Checks to see whether the specified level is enabled. |
void |
log(int level,
java.lang.String message)
logs messages |
void |
log(int level,
java.lang.String message,
java.lang.Throwable t)
logs messages and error |
void |
shutdown()
Close all destinations |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AVALON_LOGGER
public static final java.lang.String AVALON_LOGGER_FORMAT
public static final java.lang.String AVALON_LOGGER_LEVEL
Constructor Detail |
---|
public AvalonLogChute()
Method Detail |
---|
public void init(RuntimeServices rs) throws java.lang.Exception
LogChute
init
in interface LogChute
java.lang.Exception
LogChute.init(org.apache.velocity.runtime.RuntimeServices)
public void init(java.lang.String file) throws java.lang.Exception
file
-
java.lang.Exception
public void log(int level, java.lang.String message)
log
in interface LogChute
level
- severity levelmessage
- complete error messagepublic void log(int level, java.lang.String message, java.lang.Throwable t)
log
in interface LogChute
level
- severity levelmessage
- complete error messaget
- public boolean isLevelEnabled(int level)
isLevelEnabled
in interface LogChute
level
-
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |