|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.sanger.cgp.standalonecsa.services.VelocityLogImpl
public class VelocityLogImpl
Allows log messages from the velocity template engine to be sent to the log4j instance.
Field Summary |
---|
Fields inherited from interface org.apache.velocity.runtime.log.LogSystem |
---|
DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID |
Constructor Summary | |
---|---|
VelocityLogImpl()
|
Method Summary | |
---|---|
void |
init(org.apache.velocity.runtime.RuntimeServices rs)
Required to initialise object. |
void |
logVelocityMessage(int level,
java.lang.String message)
Passes the different types of Velocity message to the appropriate log4j class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocityLogImpl()
Method Detail |
---|
public void init(org.apache.velocity.runtime.RuntimeServices rs) throws java.lang.Exception
init
in interface org.apache.velocity.runtime.log.LogSystem
rs
-
java.lang.Exception
- can throw an exceptionpublic void logVelocityMessage(int level, java.lang.String message)
logVelocityMessage
in interface org.apache.velocity.runtime.log.LogSystem
level
- indicates severity of Velocity messagemessage
- the message to be passed to log4j
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |