org.apache.velocity.runtime.log

Class AvalonLogSystem

Implemented Interfaces:
LogSystem

public class AvalonLogSystem
extends java.lang.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 $
Authors:
Jon S. Stevens
Geir Magnusson Jr.

Field Summary

private Logger
logger
private RuntimeServices
rsvc

Fields inherited from interface org.apache.velocity.runtime.log.LogSystem

DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID

Constructor Summary

AvalonLogSystem()
default CTOR.

Method Summary

void
init(String logFile)
initializes the log system using the logfile argument
void
init(RuntimeServices rs)
init()
void
logVelocityMessage(int level, String message)
logs messages

Field Details

logger

private Logger logger

rsvc

private RuntimeServices rsvc

Constructor Details

AvalonLogSystem

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

Method Details

init

public void init(String logFile)
            throws Exception
initializes the log system using the logfile argument
Parameters:
logFile - file for log messages

init

public void init(RuntimeServices rs)
            throws Exception
init()
Specified by:
init in interface LogSystem

logVelocityMessage

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

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