Package org.apache.velocity.runtime.log
Class NullLogChute
- java.lang.Object
-
- org.apache.velocity.runtime.log.NullLogChute
-
- All Implemented Interfaces:
LogChute
- Direct Known Subclasses:
NullLogSystem
public class NullLogChute extends java.lang.Object implements LogChute
Logger used in case of failure. Does nothing.- Since:
- 1.5
- Version:
- $Id: NullLogChute.java 730039 2008-12-30 03:53:19Z byron $
- Author:
- Geir Magnusson Jr., Nathan Bubna.
-
-
Field Summary
-
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
Constructors Constructor Description NullLogChute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(RuntimeServices rs)Initializes this LogChute.booleanisLevelEnabled(int level)Tell whether or not a log level is enabled.voidlog(int level, java.lang.String message)logs messages to the great Garbage Collector in the skyvoidlog(int level, java.lang.String message, java.lang.Throwable t)logs messages and their accompanying Throwables to the great Garbage Collector in the sky
-
-
-
Method Detail
-
init
public void init(RuntimeServices rs) throws java.lang.Exception
Description copied from interface:LogChuteInitializes this LogChute.- Specified by:
initin interfaceLogChute- Throws:
java.lang.Exception- See Also:
LogChute.init(org.apache.velocity.runtime.RuntimeServices)
-
log
public void log(int level, java.lang.String message)logs messages to the great Garbage Collector in the sky
-
log
public void log(int level, java.lang.String message, java.lang.Throwable t)logs messages and their accompanying Throwables to the great Garbage Collector in the sky
-
isLevelEnabled
public boolean isLevelEnabled(int level)
Description copied from interface:LogChuteTell whether or not a log level is enabled.- Specified by:
isLevelEnabledin interfaceLogChute- Returns:
- True if a level is enabled.
- See Also:
LogChute.isLevelEnabled(int)
-
-