Interface LogChute

All Known Implementing Classes:
AvalonLogChute, AvalonLogSystem, CommonsLogLogChute, JdkLogChute, Log4JLogChute, Log4JLogSystem, LogChuteSystem, NullLogChute, NullLogSystem, PrimordialLogSystem, ServletLogChute, SystemLogChute

public interface LogChute
Base interface that logging systems need to implement. This is the blessed descendant of the old LogSystem interface.
Since:
1.5
Version:
$Id: LogChute.java 730039 2008-12-30 03:53:19Z byron $
Author:
Jon S. Stevens, Geir Magnusson Jr., Nathan Bubna
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    ID for debug messages.
    static final String
    Prefix string for debug messages.
    static final int
    ID for error messages.
    static final String
    Prefix string for error messages.
    static final int
    ID for info messages.
    static final String
    Prefix string for info messages.
    static final int
    ID for trace messages.
    static final String
    Prefix string for trace messages.
    static final int
    ID for warning messages.
    static final String
    Prefix string for warn messages.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes this LogChute.
    boolean
    isLevelEnabled(int level)
    Tell whether or not a log level is enabled.
    void
    log(int level, String message)
    Send a log message from Velocity.
    void
    log(int level, String message, Throwable t)
    Send a log message from Velocity along with an exception or error
  • Field Details

  • Method Details

    • init

      void init(RuntimeServices rs) throws Exception
      Initializes this LogChute.
      Parameters:
      rs -
      Throws:
      Exception
    • log

      void log(int level, String message)
      Send a log message from Velocity.
      Parameters:
      level -
      message -
    • log

      void log(int level, String message, Throwable t)
      Send a log message from Velocity along with an exception or error
      Parameters:
      level -
      message -
      t -
    • isLevelEnabled

      boolean isLevelEnabled(int level)
      Tell whether or not a log level is enabled.
      Parameters:
      level -
      Returns:
      True if a level is enabled.