org.jvoicexml.logging
Interface Logger

All Known Implementing Classes:
JVoiceXmlLogger

public interface Logger

Allows for users to implement their own logging mechanism.

Version:
$Revision: 222 $

Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Shaun Childers

Method Summary
 void debug(Object obj)
          Log DEBUG messages.
 void debug(Object obj, Throwable t)
          Log DEBUG messages with the Throwable cause.
 void error(Object obj)
          Log ERROR messages.
 void error(Object obj, Throwable t)
          Log ERROR messages with the Throwable cause.
 void fatal(Object obj)
          Log FATAL messages.
 void fatal(Object obj, Throwable t)
          Log FATAL messages with the Throwable cause.
 void info(Object obj)
          Log INFO messages.
 void info(Object obj, Throwable t)
          Log INFO messages with the Throwable cause.
 boolean isDebugEnabled()
          Inform the caller whether the level of logging is DEBUG.
 boolean isInfoEnabled()
          Inform the caller whether the level of logging is INFO.
 void seed(Class clazz)
          Seed the Logger implementation class with the class doing the logging.
 void warn(Object obj)
          Log WARN messages.
 void warn(Object obj, Throwable t)
          Log WARN messages with the Throwable cause.
 

Method Detail

seed

void seed(Class clazz)
Seed the Logger implementation class with the class doing the logging.

Parameters:
clazz - The class to attach the logger to.

info

void info(Object obj)
Log INFO messages.

Parameters:
obj - The object to log, typically a java.lang.String.

info

void info(Object obj,
          Throwable t)
Log INFO messages with the Throwable cause.

Parameters:
obj - The object to log, typically a java.lang.String.
t - The java.lang.Throwable object representing this exception.

warn

void warn(Object obj)
Log WARN messages.

Parameters:
obj - The object to log, typically a java.lang.String.

warn

void warn(Object obj,
          Throwable t)
Log WARN messages with the Throwable cause.

Parameters:
obj - The object to log, typically a java.lang.String.
t - The java.lang.Throwable object representing this exception.

debug

void debug(Object obj)
Log DEBUG messages.

Parameters:
obj - The object to log, typically a java.lang.String.

debug

void debug(Object obj,
           Throwable t)
Log DEBUG messages with the Throwable cause.

Parameters:
obj - The object to log, typically a java.lang.String.
t - The java.lang.Throwable object representing this exception.

error

void error(Object obj)
Log ERROR messages.

Parameters:
obj - The object to log, typically a java.lang.String.

error

void error(Object obj,
           Throwable t)
Log ERROR messages with the Throwable cause.

Parameters:
obj - The object to log, typically a java.lang.String.
t - The java.lang.Throwable object representing this exception.

fatal

void fatal(Object obj)
Log FATAL messages.

Parameters:
obj - The object to log, typically a java.lang.String.

fatal

void fatal(Object obj,
           Throwable t)
Log FATAL messages with the Throwable cause.

Parameters:
obj - The object to log, typically a java.lang.String.
t - The java.lang.Throwable object representing this exception.

isDebugEnabled

boolean isDebugEnabled()
Inform the caller whether the level of logging is DEBUG.

Returns:
True or False if debug is enabled.

isInfoEnabled

boolean isInfoEnabled()
Inform the caller whether the level of logging is INFO.

Returns:
True or False if INFO is enabled.


Copyright © 2005-2007 JVoiceXML group.