Class AvalonLogChute

java.lang.Object
org.apache.velocity.runtime.log.AvalonLogChute
All Implemented Interfaces:
LogChute
Direct Known Subclasses:
AvalonLogSystem

public class AvalonLogChute extends Object implements LogChute
Implementation of a Avalon logger.
Since:
1.5
Version:
$Id: AvalonLogChute.java 730039 2008-12-30 03:53:19Z byron $
Author:
Jon S. Stevens, Geir Magnusson Jr., Nathan Bubna
  • Field Details

  • Constructor Details

    • AvalonLogChute

      public AvalonLogChute()
  • Method Details

    • init

      public void init(RuntimeServices rs) throws Exception
      Description copied from interface: LogChute
      Initializes this LogChute.
      Specified by:
      init in interface LogChute
      Throws:
      Exception
      See Also:
    • init

      public void init(String file) throws Exception
      Deprecated.
      This method should not be used. It is here only to provide backwards compatibility for the deprecated AvalonLogSystem class, in case anyone used it and this method directly.
      Parameters:
      file -
      Throws:
      Exception
    • log

      public void log(int level, String message)
      logs messages
      Specified by:
      log in interface LogChute
      Parameters:
      level - severity level
      message - complete error message
    • log

      public void log(int level, String message, Throwable t)
      logs messages and error
      Specified by:
      log in interface LogChute
      Parameters:
      level - severity level
      message - complete error message
      t -
    • isLevelEnabled

      public boolean isLevelEnabled(int level)
      Checks to see whether the specified level is enabled.
      Specified by:
      isLevelEnabled in interface LogChute
      Parameters:
      level -
      Returns:
      True if the specified level is enabled.
    • finalize

      protected void finalize() throws Throwable
      Also do a shutdown if the object is destroy()'d.
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • shutdown

      public void shutdown()
      Close all destinations