public class Slf4JLogChute extends Object implements org.apache.velocity.runtime.log.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
修飾子とタイプ | フィールドと説明 |
---|---|
static String |
DEFAULT_LOG_NAME
Default name for the commons-logging instance
|
protected org.slf4j.Logger |
log
The Slf4J Logger instance.
|
static String |
LOGCHUTE_SLF4J_NAME
Property key for specifying the name for the log instance
|
コンストラクタと説明 |
---|
Slf4JLogChute() |
public static final String LOGCHUTE_SLF4J_NAME
public static final String DEFAULT_LOG_NAME
protected org.slf4j.Logger log
public void init(org.apache.velocity.runtime.RuntimeServices rs) throws Exception
init
インタフェース内 org.apache.velocity.runtime.log.LogChute
Exception
public boolean isLevelEnabled(int level)
isLevelEnabled
インタフェース内 org.apache.velocity.runtime.log.LogChute
public void log(int level, String message)
log
インタフェース内 org.apache.velocity.runtime.log.LogChute
Copyright © 2012. All Rights Reserved.