org.norther.tammi.spray.velocity
Class VelocityLogger

java.lang.Object
  extended by org.norther.tammi.spray.velocity.VelocityLogger
All Implemented Interfaces:
Serializable, LogChute

public class VelocityLogger
extends Object
implements LogChute, Serializable

A Velocity logger facade.

Version:
$Id: VelocityLogger.java,v 1.15 2009/09/28 15:08:30 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.velocity.runtime.log.LogChute
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX
 
Constructor Summary
VelocityLogger()
          Constructs a logger.
 
Method Summary
 void init(RuntimeServices services)
           
 boolean isLevelEnabled(int type)
           
 void log(int type, String message)
           
 void log(int type, String message, Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityLogger

public VelocityLogger()
Constructs a logger.

Method Detail

init

public void init(RuntimeServices services)
          throws Exception
Specified by:
init in interface LogChute
Throws:
Exception

log

public void log(int type,
                String message)
Specified by:
log in interface LogChute

log

public void log(int type,
                String message,
                Throwable t)
Specified by:
log in interface LogChute

isLevelEnabled

public boolean isLevelEnabled(int type)
Specified by:
isLevelEnabled in interface LogChute


Copyright © 2004 The Norther Organization. All rights reserved.