类 LogChuteCommonsLog

java.lang.Object
org.apache.velocity.tools.generic.log.LogChuteCommonsLog
直接已知子类:
LogSystemCommonsLog

public class LogChuteCommonsLog extends Object
Redirects commons-logging messages to Velocity's configured LogChute.

To use, specify this class in your commons-logging.properties:


 org.apache.commons.logging.Log=org.apache.velocity.tools.generic.log.LogChuteCommonsLog
 

从以下版本开始:
VelocityTools 2.0
版本:
$Id: LogChuteCommonsLog.java 72115 2004-11-11 07:00:54Z nbubna $
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private String
     
    private static org.apache.velocity.runtime.log.Log
     
  • 构造器概要

    构造器
    构造器
    说明
     
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    debug(Object message)
    Passes messages to Velocity's LogChute at "DEBUG" level.
    void
    debug(Object message, Throwable t)
    Passes messages to Velocity's LogChute at "DEBUG" level.
    void
    error(Object message)
    Passes messages to Velocity's LogChute at "ERROR" level.
    void
    error(Object message, Throwable t)
    Passes messages to Velocity's LogChute at "ERROR" level.
    void
    fatal(Object message)
    Passes messages to Velocity's LogChute at "ERROR" level.
    void
    fatal(Object message, Throwable t)
    Passes messages to Velocity's LogChute at "ERROR" level.
    protected org.apache.velocity.runtime.log.Log
     
    protected static org.apache.velocity.runtime.log.Log
    Allow subclasses to statically access the static target.
    void
    info(Object message)
    Passes messages to Velocity's LogChute at "INFO" level.
    void
    info(Object message, Throwable t)
    Passes messages to Velocity's LogChute at "INFO" level.
    boolean
    Returns true if Velocity's LogChute returns true for isDebugEnabled().
    boolean
    Returns true if Velocity's LogChute returns true for isErrorEnabled().
    boolean
    Returns true if isErrorEnabled() returns true, since Velocity's LogChute doesn't support this level.
    boolean
    Returns true if Velocity's LogChute returns true for isInfoEnabled().
    boolean
    Returns true if Velocity's LogChute returns true for isTraceEnabled().
    boolean
    Returns true if Velocity's LogChute returns true for isWarnEnabled().
    static void
    setVelocityLog(org.apache.velocity.runtime.log.Log target)
    Set a VelocityEngine to handle all the log messages.
    void
    trace(Object message)
    Passes messages to Velocity's LogChute at "DEBUG" level.
    void
    trace(Object message, Throwable t)
    Passes messages to Velocity's LogChute at "DEBUG" level.
    void
    warn(Object message)
    Passes messages to Velocity's LogChute at "WARN" level.
    void
    warn(Object message, Throwable t)
    Passes messages to Velocity's LogChute at "WARN" level.

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

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

    • target

      private static org.apache.velocity.runtime.log.Log target
    • category

      private String category
  • 构造器详细资料

    • LogChuteCommonsLog

      public LogChuteCommonsLog()
    • LogChuteCommonsLog

      public LogChuteCommonsLog(String category)
  • 方法详细资料

    • getVelocityLog

      protected static org.apache.velocity.runtime.log.Log getVelocityLog()
      Allow subclasses to statically access the static target.
    • setVelocityLog

      public static void setVelocityLog(org.apache.velocity.runtime.log.Log target)
      Set a VelocityEngine to handle all the log messages.
    • getTarget

      protected org.apache.velocity.runtime.log.Log getTarget()
    • trace

      public void trace(Object message)
      Passes messages to Velocity's LogChute at "DEBUG" level. (it's the lowest available. sorry.)
    • trace

      public void trace(Object message, Throwable t)
      Passes messages to Velocity's LogChute at "DEBUG" level. (it's the lowest available. sorry.)
    • debug

      public void debug(Object message)
      Passes messages to Velocity's LogChute at "DEBUG" level.
    • debug

      public void debug(Object message, Throwable t)
      Passes messages to Velocity's LogChute at "DEBUG" level.
    • info

      public void info(Object message)
      Passes messages to Velocity's LogChute at "INFO" level.
    • info

      public void info(Object message, Throwable t)
      Passes messages to Velocity's LogChute at "INFO" level.
    • warn

      public void warn(Object message)
      Passes messages to Velocity's LogChute at "WARN" level.
    • warn

      public void warn(Object message, Throwable t)
      Passes messages to Velocity's LogChute at "WARN" level.
    • error

      public void error(Object message)
      Passes messages to Velocity's LogChute at "ERROR" level.
    • error

      public void error(Object message, Throwable t)
      Passes messages to Velocity's LogChute at "ERROR" level.
    • fatal

      public void fatal(Object message)
      Passes messages to Velocity's LogChute at "ERROR" level. (it's the highest available. sorry.)
    • fatal

      public void fatal(Object message, Throwable t)
      Passes messages to Velocity's LogChute at "ERROR" level. (it's the highest available. sorry.)
    • isTraceEnabled

      public boolean isTraceEnabled()
      Returns true if Velocity's LogChute returns true for isTraceEnabled().
    • isDebugEnabled

      public boolean isDebugEnabled()
      Returns true if Velocity's LogChute returns true for isDebugEnabled().
    • isInfoEnabled

      public boolean isInfoEnabled()
      Returns true if Velocity's LogChute returns true for isInfoEnabled().
    • isWarnEnabled

      public boolean isWarnEnabled()
      Returns true if Velocity's LogChute returns true for isWarnEnabled().
    • isErrorEnabled

      public boolean isErrorEnabled()
      Returns true if Velocity's LogChute returns true for isErrorEnabled().
    • isFatalEnabled

      public boolean isFatalEnabled()
      Returns true if isErrorEnabled() returns true, since Velocity's LogChute doesn't support this level.