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'sLogger
rather than its deprecatedCategory
class.- 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 void
finalize()
Deprecated.Also do a shutdown if the object is destroy()'d.void
init(RuntimeServices rs)
Deprecated.Initializes this LogSystem.void
logVelocityMessage(int level, java.lang.String message)
Deprecated.logs messagesvoid
shutdown()
Deprecated.Close all destinations
-
-
-
-
Method Detail
-
init
public void init(RuntimeServices rs)
Deprecated.Description copied from interface:LogSystem
Initializes this LogSystem.- Specified by:
init
in 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:
logVelocityMessage
in interfaceLogSystem
- Parameters:
level
- severity levelmessage
- complete error message
-
finalize
protected void finalize() throws java.lang.Throwable
Deprecated.Also do a shutdown if the object is destroy()'d.- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
shutdown
public void shutdown()
Deprecated.Close all destinations
-
-