org.apache.velocity.runtime.log
Class AvalonLogSystem
java.lang.Object
org.apache.velocity.runtime.log.AvalonLogSystem
- All Implemented Interfaces:
- LogSystem
- public class AvalonLogSystem
- extends java.lang.Object
- implements LogSystem
Implementation of a Avalon logger.
- Version:
- $Id: AvalonLogSystem.java 75959 2004-03-19 17:13:40Z dlr $
- Author:
- Jon S. Stevens, Geir Magnusson Jr.
Method Summary |
void |
init(RuntimeServices rs)
init() |
void |
init(java.lang.String logFile)
initializes the log system using the logfile argument |
void |
logVelocityMessage(int level,
java.lang.String message)
logs messages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private org.apache.log.Logger logger
rsvc
private RuntimeServices rsvc
AvalonLogSystem
public AvalonLogSystem()
- default CTOR. Initializes itself using the property RUNTIME_LOG
from the Velocity properties
init
public void init(RuntimeServices rs)
throws java.lang.Exception
- Description copied from interface:
LogSystem
- init()
- Specified by:
init
in interface LogSystem
- Throws:
java.lang.Exception
init
public void init(java.lang.String logFile)
throws java.lang.Exception
- initializes the log system using the logfile argument
- Parameters:
logFile
- file for log messages
- Throws:
java.lang.Exception
logVelocityMessage
public void logVelocityMessage(int level,
java.lang.String message)
- logs messages
- Specified by:
logVelocityMessage
in interface LogSystem
- Parameters:
level
- severity levelmessage
- complete error message
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.