com.googlecode.fascinator.portal.velocity
Class Slf4jLogChute
java.lang.Object
com.googlecode.fascinator.portal.velocity.Slf4jLogChute
- All Implemented Interfaces:
- org.apache.velocity.runtime.log.LogChute
public class Slf4jLogChute
- extends Object
- implements org.apache.velocity.runtime.log.LogChute
Simple SLF4J wrapper for Velocity.
- Author:
- Oliver Lucido
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Slf4jLogChute
public Slf4jLogChute()
init
public void init(org.apache.velocity.runtime.RuntimeServices runtimeServices)
throws Exception
- Specified by:
init in interface org.apache.velocity.runtime.log.LogChute
- Throws:
Exception
log
public void log(int level,
String message)
- Specified by:
log in interface org.apache.velocity.runtime.log.LogChute
log
public void log(int level,
String message,
Throwable throwable)
- Specified by:
log in interface org.apache.velocity.runtime.log.LogChute
isLevelEnabled
public boolean isLevelEnabled(int level)
- Specified by:
isLevelEnabled in interface org.apache.velocity.runtime.log.LogChute
Copyright © 2009-2014. All Rights Reserved.