Package org.sakaiproject.velocity.util
Class SLF4JLogChute
- java.lang.Object
-
- org.sakaiproject.velocity.util.SLF4JLogChute
-
- All Implemented Interfaces:
org.apache.velocity.runtime.log.LogChute
public class SLF4JLogChute extends Object implements org.apache.velocity.runtime.log.LogChute
Provides a LogChute for velocity to log to SLF4J
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_LOGGER
-
Constructor Summary
Constructors Constructor Description SLF4JLogChute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(org.apache.velocity.runtime.RuntimeServices rs)booleanisLevelEnabled(int level)voidlog(int level, String message)voidlog(int level, String message, Throwable t)
-
-
-
Field Detail
-
DEFAULT_LOGGER
public static final String DEFAULT_LOGGER
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(org.apache.velocity.runtime.RuntimeServices rs) throws Exception- Specified by:
initin interfaceorg.apache.velocity.runtime.log.LogChute- Throws:
Exception- See Also:
LogChute.init(RuntimeServices)
-
log
public void log(int level, String message)- Specified by:
login interfaceorg.apache.velocity.runtime.log.LogChute- See Also:
LogChute.log(int, String)
-
log
public void log(int level, String message, Throwable t)- Specified by:
login interfaceorg.apache.velocity.runtime.log.LogChute- See Also:
LogChute.log(int, String, Throwable)
-
isLevelEnabled
public boolean isLevelEnabled(int level)
- Specified by:
isLevelEnabledin interfaceorg.apache.velocity.runtime.log.LogChute- See Also:
LogChute.isLevelEnabled(int)
-
-