@Deprecated public class CommonsLogLogSystem extends Object implements org.apache.velocity.runtime.log.LogSystem
Please use CommonsLogLogChute in Velocity Engine 1.6 as this will be removed in VelocityTools releases subsequent to Velocity 1.6's release, if not earlier.
To use, first set up commons-logging, then tell Velocity to use
this class for logging by adding the following to your velocity.properties:
runtime.log.logsystem.class = org.apache.velocity.tools.generic.log.CommonsLogLogSystem
You may also set this property to specify what log/name Velocity's
messages should be logged to (example below is default).
runtime.log.logsystem.commons.logging.name = org.apache.velocity
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LOG_NAME
Deprecated.
Default name for the commons-logging instance
|
protected org.apache.commons.logging.Log |
log
Deprecated.
the commons-logging Log instance
|
static String |
LOGSYSTEM_COMMONS_LOG_NAME
Deprecated.
Property key for specifying the name for the log instance
|
Constructor and Description |
---|
CommonsLogLogSystem()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
init(org.apache.velocity.runtime.RuntimeServices rs)
Deprecated.
LogSystem methods
|
void |
logVelocityMessage(int level,
String message)
Deprecated.
Send a log message from Velocity.
|
public static final String LOGSYSTEM_COMMONS_LOG_NAME
public static final String DEFAULT_LOG_NAME
protected org.apache.commons.logging.Log log
public void init(org.apache.velocity.runtime.RuntimeServices rs) throws Exception
init
in interface org.apache.velocity.runtime.log.LogSystem
Exception
public void logVelocityMessage(int level, String message)
logVelocityMessage
in interface org.apache.velocity.runtime.log.LogSystem
Copyright © 2002–2014 Apache Software Foundation. All rights reserved.