org.apache.velocity.runtime.log

Class AvalonLogSystem

public class AvalonLogSystem extends Object implements LogSystem

Implementation of a Avalon logger.

Version: $Id: AvalonLogSystem.java,v 1.12.4.1 2004/03/03 23:22:56 geirm Exp $

Author: Jon S. Stevens Geir Magnusson Jr.

Field Summary
Loggerlogger
RuntimeServicesrsvc
Constructor Summary
AvalonLogSystem()
default CTOR.
Method Summary
voidinit(RuntimeServices rs)
voidinit(String logFile)
initializes the log system using the logfile argument
voidlogVelocityMessage(int level, String message)
logs messages

Field Detail

logger

private Logger logger

rsvc

private RuntimeServices rsvc

Constructor Detail

AvalonLogSystem

public AvalonLogSystem()
default CTOR. Initializes itself using the property RUNTIME_LOG from the Velocity properties

Method Detail

init

public void init(RuntimeServices rs)

init

public void init(String logFile)
initializes the log system using the logfile argument

Parameters: logFile file for log messages

logVelocityMessage

public void logVelocityMessage(int level, String message)
logs messages

Parameters: level severity level message complete error message

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.