org.apache.velocity.runtime.log
Class SimpleLog4JLogSystem
java.lang.Object
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
- LogSystem
public class SimpleLog4JLogSystem
extends java.lang.Object
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:
logger
protected Category logger
log4java logging interface
SimpleLog4JLogSystem
public SimpleLog4JLogSystem()
finalize
protected void finalize()
throws Throwable
Also do a shutdown if the object is destroy()'d.
internalInit
private void internalInit(String logfile)
throws Exception
initializes the log system using the logfile argument
logVelocityMessage
public void logVelocityMessage(int level,
String message)
logs messages
- logVelocityMessage in interface LogSystem
level
- severity levelmessage
- complete error message
shutdown
public void shutdown()
Close all destinations
Copyright © 2003 Apache Software Foundation. All Rights Reserved.