fr.umlv.tatoo.cc.common.velocity
Class VelocityLogger

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.velocity.VelocityLogger
All Implemented Interfaces:
org.apache.velocity.runtime.log.LogSystem

public class VelocityLogger
extends Object
implements org.apache.velocity.runtime.log.LogSystem

This class implements a velocity logger that redirect all errors to the thread local Reporter.

Author:
Gilles

Field Summary
 
Fields inherited from interface org.apache.velocity.runtime.log.LogSystem
DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID
 
Constructor Summary
VelocityLogger()
           
 
Method Summary
 void init(org.apache.velocity.runtime.RuntimeServices service)
           
 void logVelocityMessage(int level, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityLogger

public VelocityLogger()
Method Detail

init

public void init(org.apache.velocity.runtime.RuntimeServices service)
          throws Exception
Specified by:
init in interface org.apache.velocity.runtime.log.LogSystem
Throws:
Exception

logVelocityMessage

public void logVelocityMessage(int level,
                               String message)
Specified by:
logVelocityMessage in interface org.apache.velocity.runtime.log.LogSystem