Class PrimordialLogSystem

java.lang.Object
org.apache.velocity.runtime.log.PrimordialLogSystem
All Implemented Interfaces:
LogChute, LogSystem

public class PrimordialLogSystem extends Object implements LogSystem
Deprecated.
Use HoldingLogChute instead!
Pre-init logger. I believe that this was suggested by Carsten Ziegeler <cziegeler@sundn.de> and Jeroen C. van Gelderen. If this isn't correct, let me know as this was a good idea...
Version:
$Id: PrimordialLogSystem.java 463298 2006-10-12 16:10:32Z henning $
Author:
Geir Magnusson Jr.
  • Constructor Details

    • PrimordialLogSystem

      public PrimordialLogSystem()
      Deprecated.
  • Method Details

    • logVelocityMessage

      public void logVelocityMessage(int level, String message)
      Deprecated.
      Use log(level, message).
      Specified by:
      logVelocityMessage in interface LogSystem
      Parameters:
      level -
      message -
    • dumpLogMessages

      public void dumpLogMessages(LogSystem newLogger)
      Deprecated.
      use transferTo(LogChute newChute)
      Parameters:
      newLogger -
    • 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:
    • log

      public void log(int level, String message)
      Logs messages. All we do is store them until 'later'.
      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 errors. All we do is store them until 'later'.
      Specified by:
      log in interface LogChute
      Parameters:
      level - severity level
      message - complete error message
      t - the accompanying java.lang.Throwable
    • isLevelEnabled

      public boolean isLevelEnabled(int level)
      Description copied from interface: LogChute
      Tell whether or not a log level is enabled.
      Specified by:
      isLevelEnabled in interface LogChute
      Returns:
      True if a level is enabled.
      See Also:
    • transferTo

      public void transferTo(LogChute newChute)
      Dumps the log messages this chute is holding into a new chute
      Parameters:
      newChute -