类 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
  • 构造器概要

    构造器
    构造器
    说明
    已过时。
    Construct a simple logger for a servlet environment.
  • 方法概要

    修饰符和类型
    方法
    说明
    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
    log(int level, String message)
    已过时。
    Send a log message from Velocity.
    void
    log(int level, String message, Throwable t)
    已过时。
     
    void
    setEnabledLevel(int level)
    已过时。
    Set the minimum level at which messages will be printed.
    protected int
    toLevel(String level)
    已过时。
     

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

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

    • RUNTIME_LOG_LEVEL_KEY

      public static final String RUNTIME_LOG_LEVEL_KEY
      已过时。
      另请参阅:
    • enabled

      private int enabled
      已过时。
    • servletContext

      protected ServletContext servletContext
      已过时。
    • PREFIX

      public static final String PREFIX
      已过时。
      另请参阅:
  • 构造器详细资料

    • 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

      public void init(org.apache.velocity.runtime.RuntimeServices rs) throws Exception
      已过时。
      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

      protected int toLevel(String level)
      已过时。
    • 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

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

      public void log(int level, String message, Throwable t)
      已过时。
      指定者:
      log 在接口中 org.apache.velocity.runtime.log.LogChute