类 ServletLogChute
java.lang.Object
org.apache.velocity.tools.view.ServletLogChute
- 所有已实现的接口:
org.apache.velocity.runtime.log.LogChute
- 直接已知子类:
ServletLogger
@Deprecated
public class ServletLogChute
extends Object
implements org.apache.velocity.runtime.log.LogChute
已过时。
This class has been moved to Velocity Engine 1.6+ and only remains
here temporarily for users of previous Velocity Engine versions.
Simple wrapper for the servlet log. This passes Velocity log
messages to ServletContext.log(String). You may configure the
level of output in your velocity.properties by adding the
"runtime.log.logsystem.servlet.level" property with one of the
following values: error, warn, info, debug, or trace. The default
is trace.
- 版本:
- $Revision: 534682 $ $Date: 2007-05-02 18:50:54 -0700 (Wed, 02 May 2007) $
- 作者:
- Geir Magnusson Jr., Nathan Bubna
-
字段概要
字段修饰符和类型字段说明private int
已过时。static final String
已过时。static final String
已过时。protected ServletContext
已过时。从接口继承的字段 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
已过时。Returns the current minimum level at which messages will be printed.void
init
(org.apache.velocity.runtime.RuntimeServices rs) 已过时。init()boolean
isLevelEnabled
(int level) 已过时。This will return true if the specified level is equal to or higher than the level this LogChute is enabled for.void
已过时。Send a log message from Velocity.void
已过时。void
setEnabledLevel
(int level) 已过时。Set the minimum level at which messages will be printed.protected int
已过时。
-
字段详细资料
-
构造器详细资料
-
ServletLogChute
public ServletLogChute()已过时。Construct a simple logger for a servlet environment.
NOTE: this class expects that the ServletContext has already been placed in the runtime's application attributes under its full class name (i.e. "javax.servlet.ServletContext").
-
-
方法详细资料
-
init
已过时。init()- 指定者:
init
在接口中org.apache.velocity.runtime.log.LogChute
- 抛出:
IllegalStateException
- if the ServletContext is not available in the application attributes under the appropriate key.Exception
-
toLevel
已过时。 -
setEnabledLevel
public void setEnabledLevel(int level) 已过时。Set the minimum level at which messages will be printed. -
getEnabledLevel
public int getEnabledLevel()已过时。Returns the current minimum level at which messages will be printed. -
isLevelEnabled
public boolean isLevelEnabled(int level) 已过时。This will return true if the specified level is equal to or higher than the level this LogChute is enabled for.- 指定者:
isLevelEnabled
在接口中org.apache.velocity.runtime.log.LogChute
-
log
已过时。Send a log message from Velocity.- 指定者:
log
在接口中org.apache.velocity.runtime.log.LogChute
-
log
已过时。- 指定者:
log
在接口中org.apache.velocity.runtime.log.LogChute
-