at.spardat.xma.boot.logger
Class XmaBrtLogger

java.lang.Object
  extended byat.spardat.xma.boot.logger.XmaBrtLogger
All Implemented Interfaces:
org.apache.commons.logging.Log

public class XmaBrtLogger
extends java.lang.Object
implements org.apache.commons.logging.Log

Implementation of the org.apache.commons.logging.Log interface that wraps the XMA Bootruntime Logger Implementation

This class is used to pipe log entries produced by the cookie implementation of apache httpClient into the logfile of XMA Bootruntime.


Field Summary
protected  Logger logger
          The underlying Logger implementation we are using.
protected  java.lang.String name
          The name of the logger we are wrapping.
 
Constructor Summary
XmaBrtLogger(java.lang.String name)
          Construct a named instance of this Logger.
 
Method Summary
 void debug(java.lang.Object message)
          Logs a message with java.util.logging.Level.FINE.
 void debug(java.lang.Object message, java.lang.Throwable exception)
          Logs a message with java.util.logging.Level.FINE.
 void error(java.lang.Object message)
          Logs a message with java.util.logging.Level.SEVERE.
 void error(java.lang.Object message, java.lang.Throwable exception)
          Logs a message with java.util.logging.Level.SEVERE.
 void fatal(java.lang.Object message)
          Logs a message with java.util.logging.Level.SEVERE.
 void fatal(java.lang.Object message, java.lang.Throwable exception)
          Logs a message with java.util.logging.Level.SEVERE.
 Logger getLogger()
          Return the native Logger instance we are using.
 void info(java.lang.Object message)
          Logs a message with java.util.logging.Level.INFO.
 void info(java.lang.Object message, java.lang.Throwable exception)
          Logs a message with java.util.logging.Level.INFO.
 boolean isDebugEnabled()
          Is debug logging currently enabled?
 boolean isErrorEnabled()
          Is error logging currently enabled?
 boolean isFatalEnabled()
          Is fatal logging currently enabled?
 boolean isInfoEnabled()
          Is info logging currently enabled?
 boolean isTraceEnabled()
          Is trace logging currently enabled?
 boolean isWarnEnabled()
          Is warn logging currently enabled?
 void trace(java.lang.Object message)
          Logs a message with java.util.logging.Level.ALL.
 void trace(java.lang.Object message, java.lang.Throwable exception)
          Logs a message with java.util.logging.Level.ALL.
 void warn(java.lang.Object message)
          Logs a message with java.util.logging.Level.WARNING.
 void warn(java.lang.Object message, java.lang.Throwable exception)
          Logs a message with java.util.logging.Level.WARNING.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Logger logger
The underlying Logger implementation we are using.


name

protected java.lang.String name
The name of the logger we are wrapping.

Constructor Detail

XmaBrtLogger

public XmaBrtLogger(java.lang.String name)
Construct a named instance of this Logger.

Parameters:
name - Name of the logger to be constructed
Method Detail

debug

public void debug(java.lang.Object message)
Logs a message with java.util.logging.Level.FINE.

Specified by:
debug in interface org.apache.commons.logging.Log
Parameters:
message - to log
See Also:
Log.debug(Object)

debug

public void debug(java.lang.Object message,
                  java.lang.Throwable exception)
Logs a message with java.util.logging.Level.FINE.

Specified by:
debug in interface org.apache.commons.logging.Log
Parameters:
message - to log
exception - log this cause
See Also:
Log.debug(Object, Throwable)

error

public void error(java.lang.Object message)
Logs a message with java.util.logging.Level.SEVERE.

Specified by:
error in interface org.apache.commons.logging.Log
Parameters:
message - to log
See Also:
Log.error(Object)

error

public void error(java.lang.Object message,
                  java.lang.Throwable exception)
Logs a message with java.util.logging.Level.SEVERE.

Specified by:
error in interface org.apache.commons.logging.Log
Parameters:
message - to log
exception - log this cause
See Also:
Log.error(Object, Throwable)

fatal

public void fatal(java.lang.Object message)
Logs a message with java.util.logging.Level.SEVERE.

Specified by:
fatal in interface org.apache.commons.logging.Log
Parameters:
message - to log
See Also:
Log.fatal(Object)

fatal

public void fatal(java.lang.Object message,
                  java.lang.Throwable exception)
Logs a message with java.util.logging.Level.SEVERE.

Specified by:
fatal in interface org.apache.commons.logging.Log
Parameters:
message - to log
exception - log this cause
See Also:
Log.fatal(Object, Throwable)

getLogger

public Logger getLogger()
Return the native Logger instance we are using.


info

public void info(java.lang.Object message)
Logs a message with java.util.logging.Level.INFO.

Specified by:
info in interface org.apache.commons.logging.Log
Parameters:
message - to log
See Also:
Log.info(Object)

info

public void info(java.lang.Object message,
                 java.lang.Throwable exception)
Logs a message with java.util.logging.Level.INFO.

Specified by:
info in interface org.apache.commons.logging.Log
Parameters:
message - to log
exception - log this cause
See Also:
Log.info(Object, Throwable)

isDebugEnabled

public boolean isDebugEnabled()
Is debug logging currently enabled?

Specified by:
isDebugEnabled in interface org.apache.commons.logging.Log

isErrorEnabled

public boolean isErrorEnabled()
Is error logging currently enabled?

Specified by:
isErrorEnabled in interface org.apache.commons.logging.Log

isFatalEnabled

public boolean isFatalEnabled()
Is fatal logging currently enabled?

Specified by:
isFatalEnabled in interface org.apache.commons.logging.Log

isInfoEnabled

public boolean isInfoEnabled()
Is info logging currently enabled?

Specified by:
isInfoEnabled in interface org.apache.commons.logging.Log

isTraceEnabled

public boolean isTraceEnabled()
Is trace logging currently enabled?

Specified by:
isTraceEnabled in interface org.apache.commons.logging.Log

isWarnEnabled

public boolean isWarnEnabled()
Is warn logging currently enabled?

Specified by:
isWarnEnabled in interface org.apache.commons.logging.Log

trace

public void trace(java.lang.Object message)
Logs a message with java.util.logging.Level.ALL.

Specified by:
trace in interface org.apache.commons.logging.Log
Parameters:
message - to log
See Also:
Log.trace(Object)

trace

public void trace(java.lang.Object message,
                  java.lang.Throwable exception)
Logs a message with java.util.logging.Level.ALL.

Specified by:
trace in interface org.apache.commons.logging.Log
Parameters:
message - to log
exception - log this cause
See Also:
Log.trace(Object, Throwable)

warn

public void warn(java.lang.Object message)
Logs a message with java.util.logging.Level.WARNING.

Specified by:
warn in interface org.apache.commons.logging.Log
Parameters:
message - to log
See Also:
Log.warn(Object)

warn

public void warn(java.lang.Object message,
                 java.lang.Throwable exception)
Logs a message with java.util.logging.Level.WARNING.

Specified by:
warn in interface org.apache.commons.logging.Log
Parameters:
message - to log
exception - log this cause
See Also:
Log.warn(Object, Throwable)