Package org.apache.velocity.runtime.log
Class SimpleLog4JLogSystem
java.lang.Object
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
- All Implemented Interfaces:
LogSystem
Deprecated.
Use Log4JLogChute instead.
This class is deprecated in favor of the new Log4JLogChute,
which makes use of Log4J's Logger rather than its deprecated
Category class.
- Version:
- $Id: SimpleLog4JLogSystem.java 718424 2008-11-17 22:50:43Z nbubna $
- Author:
- <a href="mailto:geirm@apache.org>Geir Magnusson Jr.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.log4j.CategoryDeprecated.log4java logging interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Deprecated.Also do a shutdown if the object is destroy()'d.voidinit(RuntimeServices rs) Deprecated.Initializes this LogSystem.voidlogVelocityMessage(int level, String message) Deprecated.logs messagesvoidshutdown()Deprecated.Close all destinations
-
Field Details
-
logger
protected org.apache.log4j.Category loggerDeprecated.log4java logging interface
-
-
Constructor Details
-
SimpleLog4JLogSystem
public SimpleLog4JLogSystem()Deprecated.
-
-
Method Details
-
init
Deprecated.Description copied from interface:LogSystemInitializes this LogSystem. -
logVelocityMessage
Deprecated.logs messages- Specified by:
logVelocityMessagein interfaceLogSystem- Parameters:
level- severity levelmessage- complete error message
-
finalize
Deprecated.Also do a shutdown if the object is destroy()'d. -
shutdown
public void shutdown()Deprecated.Close all destinations
-