org.apache.velocity.runtime.log

Class SimpleLog4JLogSystem

Implemented Interfaces:
LogSystem

public class SimpleLog4JLogSystem
extends java.lang.Object
implements LogSystem

Implementation of a simple log4j system that will either latch onto an existing category, or just do a simple rolling file log. Derived from Jon's 'complicated' version :)

Version:
$Id: SimpleLog4JLogSystem.java,v 1.1 2001/11/17 12:02:35 geirm Exp $

Author:

Nested Class Summary

Field Summary

protected Category
logger
log4java logging interface
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

SimpleLog4JLogSystem()

Method Summary

protected void
finalize()
Also do a shutdown if the object is destroy()'d.
void
init(RuntimeServices rs)
private void
internalInit(String logfile)
initializes the log system using the logfile argument
void
logVelocityMessage(int level, String message)
logs messages
void
shutdown()
Close all destinations

Field Details

Constructor Details

Method Details


Copyright © 2003 Apache Software Foundation. All Rights Reserved.