类 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 instance
    protected Log
    已过时。
    the commons-logging Log instance
    static 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 methods
    void
    logVelocityMessage(int level, String message)
    已过时。
    Send a log message from Velocity.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • LOGSYSTEM_COMMONS_LOG_NAME

      public static final String LOGSYSTEM_COMMONS_LOG_NAME
      已过时。
      Property key for specifying the name for the log instance
      另请参阅:
    • DEFAULT_LOG_NAME

      public static final String DEFAULT_LOG_NAME
      已过时。
      Default name for the commons-logging instance
      另请参阅:
    • log

      protected Log log
      已过时。
      the commons-logging Log instance
  • 构造器详细资料

    • CommonsLogLogSystem

      public CommonsLogLogSystem()
      已过时。
  • 方法详细资料

    • init

      public void init(org.apache.velocity.runtime.RuntimeServices rs) throws Exception
      已过时。
      LogSystem methods
      指定者:
      init 在接口中 org.apache.velocity.runtime.log.LogSystem
      抛出:
      Exception
    • logVelocityMessage

      public void logVelocityMessage(int level, String message)
      已过时。
      Send a log message from Velocity.
      指定者:
      logVelocityMessage 在接口中 org.apache.velocity.runtime.log.LogSystem