类 CommonsLogLogSystem
java.lang.Object
org.apache.velocity.tools.generic.log.CommonsLogLogSystem
- 所有已实现的接口:
org.apache.velocity.runtime.log.LogSystem
@Deprecated
public class CommonsLogLogSystem
extends Object
implements org.apache.velocity.runtime.log.LogSystem
已过时。
Use CommonsLogLogChute in Velocity 1.6 instead.
Redirects Velocity's LogSystem messages to commons-logging.
Please use CommonsLogLogChute in Velocity Engine 1.6 as this will be removed in VelocityTools releases subsequent to Velocity 1.6's release, if not earlier.
To use, first set up commons-logging, then tell Velocity to use
this class for logging by adding the following to your velocity.properties:
runtime.log.logsystem.class = org.apache.velocity.tools.generic.log.CommonsLogLogSystem
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.commons.logging.name = org.apache.velocity
- 从以下版本开始:
- VelocityTools 1.1
- 版本:
- $Id: CommonsLogLogSystem.java 534721 2007-05-03 05:55:15Z nbubna $
- 作者:
- Nathan Bubna
-
字段概要
字段修饰符和类型字段说明static final String
已过时。Default name for the commons-logging instanceprotected Log
已过时。the commons-logging Log instancestatic final String
已过时。Property key for specifying the name for the log instance从接口继承的字段 org.apache.velocity.runtime.log.LogSystem
DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
init
(org.apache.velocity.runtime.RuntimeServices rs) 已过时。LogSystem methodsvoid
logVelocityMessage
(int level, String message) 已过时。Send a log message from Velocity.
-
字段详细资料
-
构造器详细资料
-
CommonsLogLogSystem
public CommonsLogLogSystem()已过时。
-
-
方法详细资料
-
init
已过时。LogSystem methods- 指定者:
init
在接口中org.apache.velocity.runtime.log.LogSystem
- 抛出:
Exception
-
logVelocityMessage
已过时。Send a log message from Velocity.- 指定者:
logVelocityMessage
在接口中org.apache.velocity.runtime.log.LogSystem
-