org.objectweb.util.monolog.wrapper.velocity
Class VelocityLogger
java.lang.Object
org.objectweb.util.monolog.wrapper.velocity.VelocityLogger
- All Implemented Interfaces:
- org.apache.velocity.runtime.log.LogSystem
- public class VelocityLogger
- extends java.lang.Object
- implements org.apache.velocity.runtime.log.LogSystem
This class permits to connect the velocity log to a monolog system.
To use this class you have to specify the logger that you want in the
constructor.
- Author:
- Sebastien Chassande-Barrioz
Fields inherited from interface org.apache.velocity.runtime.log.LogSystem |
DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID |
Method Summary |
Logger |
getLog()
|
void |
init(org.apache.velocity.runtime.RuntimeServices services)
Nothing to do, except checking that the associated logger is not null. |
void |
logVelocityMessage(int i,
java.lang.String s)
|
void |
setLog(Logger l)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityLogger
public VelocityLogger(Logger l)
throws java.lang.UnsupportedOperationException
setLog
public void setLog(Logger l)
getLog
public Logger getLog()
init
public void init(org.apache.velocity.runtime.RuntimeServices services)
throws java.lang.Exception
- Nothing to do, except checking that the associated logger is not null.
- Specified by:
init
in interface org.apache.velocity.runtime.log.LogSystem
- Throws:
java.lang.Exception
logVelocityMessage
public void logVelocityMessage(int i,
java.lang.String s)
- Specified by:
logVelocityMessage
in interface org.apache.velocity.runtime.log.LogSystem