org.jvoicexml.logging.jvxml
Class JVoiceXmlLogger

java.lang.Object
  extended by org.jvoicexml.logging.jvxml.JVoiceXmlLogger
All Implemented Interfaces:
Logger

public final class JVoiceXmlLogger
extends Object
implements Logger

Main class of the JVoiceXML logging. This is the default logging implementation based on log4j and provides a wrapper around the logging with JVoiceXML to hide the real logging implementation from the users.

The user should only have to place a logging configuration XML, i.e. log4j.xml file into their CLASSPATH.

Version:
$Revision: 197 $

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

Author:
Shaun Childers

Constructor Summary
JVoiceXmlLogger()
           
 
Method Summary
 void debug(Object obj)
          Log DEBUG messages.
 void debug(Object obj, Throwable throwable)
          Log DEBUG messages with the Throwable cause.
 void error(Object obj)
          Log ERROR messages.
 void error(Object obj, Throwable throwable)
          Log ERROR messages with the Throwable cause.
 void fatal(Object obj)
          Log FATAL messages.
 void fatal(Object obj, Throwable throwable)
          Log FATAL messages with the Throwable cause.
 void info(Object obj)
          Log INFO messages.
 void info(Object obj, Throwable throwable)
          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 throwable)
          Log WARN messages with the Throwable cause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVoiceXmlLogger

public JVoiceXmlLogger()
Method Detail

seed

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

Specified by:
seed in interface Logger
Parameters:
clazz - The class to attach the logger to.

info

public void info(Object obj)
Log INFO messages.

Specified by:
info in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.

info

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

Specified by:
info in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.
throwable - The java.lang.Throwable object representing this exception.

warn

public void warn(Object obj)
Log WARN messages.

Specified by:
warn in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.

warn

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

Specified by:
warn in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.
throwable - The java.lang.Throwable object representing this exception.

debug

public void debug(Object obj)
Log DEBUG messages.

Specified by:
debug in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.

debug

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

Specified by:
debug in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.
throwable - The java.lang.Throwable object representing this exception.

error

public void error(Object obj)
Log ERROR messages.

Specified by:
error in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.

error

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

Specified by:
error in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.
throwable - The java.lang.Throwable object representing this exception.

fatal

public void fatal(Object obj)
Log FATAL messages.

Specified by:
fatal in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.

fatal

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

Specified by:
fatal in interface Logger
Parameters:
obj - The object to log, typically a java.lang.String.
throwable - The java.lang.Throwable object representing this exception.

isDebugEnabled

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

Specified by:
isDebugEnabled in interface Logger
Returns:
True or False if debug is enabled.

isInfoEnabled

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

Specified by:
isInfoEnabled in interface Logger
Returns:
True or False if INFO is enabled.


Copyright © 2005-2007 JVoiceXML group.