public class SLF4JLogChute extends Object implements LogChute
To use, first set up SLF4J, then tell Velocity to use
this class for logging by adding the following to your velocity.properties:
runtime.log.logsystem.class = edu.internet2.middleware.shibboleth.common.util.Slf4jLogChute
You may also set this property to specify what log/name Velocity's
messages should be logged to (example below is default).
runtime.log.logsystem.slf4j.name = org.apache.velocity
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LOG_NAME
Default name for the commons-logging instance.
|
private Logger |
log
The Slf4J Logger instance.
|
static String |
LOGCHUTE_SLF4J_NAME
Property key for specifying the name for the log instance.
|
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX| Constructor and Description |
|---|
SLF4JLogChute() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(RuntimeServices rs) |
boolean |
isLevelEnabled(int level) |
void |
log(int level,
String message) |
void |
log(int level,
String message,
Throwable t) |
public static final String LOGCHUTE_SLF4J_NAME
public static final String DEFAULT_LOG_NAME
private Logger log
public void init(RuntimeServices rs) throws Exception
public boolean isLevelEnabled(int level)
isLevelEnabled in interface LogChuteCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.