Package org.apache.velocity.runtime.log
Class SimpleLog4JLogSystem
- java.lang.Object
-
- org.apache.velocity.runtime.log.SimpleLog4JLogSystem
-
- All Implemented Interfaces:
LogSystem
public class SimpleLog4JLogSystem extends java.lang.Object implements LogSystem
Deprecated.Use Log4JLogChute instead.This class is deprecated in favor of the new
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 :)Log4JLogChute, which makes use of Log4J'sLoggerrather than its deprecatedCategoryclass.- Version:
- $Id: SimpleLog4JLogSystem.java 718424 2008-11-17 22:50:43Z nbubna $
- Author:
-
-
-
Constructor Summary
Constructors Constructor Description SimpleLog4JLogSystem()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidfinalize()Deprecated.Also do a shutdown if the object is destroy()'d.voidinit(RuntimeServices rs)Deprecated.Initializes this LogSystem.voidlogVelocityMessage(int level, java.lang.String message)Deprecated.logs messagesvoidshutdown()Deprecated.Close all destinations
-
-
-
-
Method Detail
-
init
public void init(RuntimeServices rs)
Deprecated.Description copied from interface:LogSystemInitializes this LogSystem.- Specified by:
initin interfaceLogSystem- See Also:
LogSystem.init(org.apache.velocity.runtime.RuntimeServices)
-
logVelocityMessage
public void logVelocityMessage(int level, java.lang.String message)Deprecated.logs messages- Specified by:
logVelocityMessagein interfaceLogSystem- Parameters:
level- severity levelmessage- complete error message
-
finalize
protected void finalize() throws java.lang.ThrowableDeprecated.Also do a shutdown if the object is destroy()'d.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
shutdown
public void shutdown()
Deprecated.Close all destinations
-
-