| 
 | ||||||||||
| 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 String | AVALON_LOGGER | 
| static String | AVALON_LOGGER_FORMAT | 
| static 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(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,
    String message)logs messages | 
|  void | log(int level,
    String message,
    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 String AVALON_LOGGER
public static final String AVALON_LOGGER_FORMAT
public static final String AVALON_LOGGER_LEVEL
| Constructor Detail | 
|---|
public AvalonLogChute()
| Method Detail | 
|---|
public void init(RuntimeServices rs)
          throws Exception
LogChute
init in interface LogChuteExceptionLogChute.init(org.apache.velocity.runtime.RuntimeServices)
public void init(String file)
          throws Exception
file - 
Exception
public void log(int level,
                String message)
log in interface LogChutelevel - severity levelmessage - complete error message
public void log(int level,
                String message,
                Throwable t)
log in interface LogChutelevel - severity levelmessage - complete error messaget - public boolean isLevelEnabled(int level)
isLevelEnabled in interface LogChutelevel - 
protected void finalize()
                 throws Throwable
finalize in class ObjectThrowablepublic void shutdown()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||