net.dpml.http
Class LoggerAdapter

java.lang.Object
  extended by net.dpml.http.LoggerAdapter
All Implemented Interfaces:
Logger

public class LoggerAdapter
extends Object
implements Logger

Wrapper to redirect Jetty logging to DPML logging.

Version:
0.0.4
Author:
Digital Product Meta Library

Constructor Summary
LoggerAdapter()
          Creation of a new logger adapter.
 
Method Summary
 void debug(String msg, Object arg0, Object arg1)
          Publish an debug level log message.
 void debug(String message, Throwable cause)
          Publish an debug level log message.
 Logger getLogger(String category)
          Create a logger matching the supplied category.
 void info(String msg, Object arg0, Object arg1)
          Publish an info level log message.
 boolean isDebugEnabled()
          Get the debug enabled status.
 void setDebugEnabled(boolean flag)
          Set the debug enabled status.
 String toString()
          Return a string representation of this logger.
 void warn(String msg, Object arg0, Object arg1)
          Publish an warning level log message.
 void warn(String message, Throwable error)
          Publish an warning level log message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggerAdapter

public LoggerAdapter()
Creation of a new logger adapter.

Method Detail

isDebugEnabled

public boolean isDebugEnabled()
Get the debug enabled status.

Specified by:
isDebugEnabled in interface Logger
Returns:
true if debug is enabled

setDebugEnabled

public void setDebugEnabled(boolean flag)
Set the debug enabled status.

Specified by:
setDebugEnabled in interface Logger
Parameters:
flag - true if debug is enabled

info

public void info(String msg,
                 Object arg0,
                 Object arg1)
Publish an info level log message.

Specified by:
info in interface Logger
Parameters:
msg - the message
arg0 - an intial argument
arg1 - a subsequent argument

debug

public void debug(String message,
                  Throwable cause)
Publish an debug level log message.

Specified by:
debug in interface Logger
Parameters:
message - the message
cause - an exception

debug

public void debug(String msg,
                  Object arg0,
                  Object arg1)
Publish an debug level log message.

Specified by:
debug in interface Logger
Parameters:
msg - the message
arg0 - an intial argument
arg1 - a subsequent argument

warn

public void warn(String msg,
                 Object arg0,
                 Object arg1)
Publish an warning level log message.

Specified by:
warn in interface Logger
Parameters:
msg - the message
arg0 - an intial argument
arg1 - a subsequent argument

warn

public void warn(String message,
                 Throwable error)
Publish an warning level log message.

Specified by:
warn in interface Logger
Parameters:
message - the message
error - an exception

getLogger

public Logger getLogger(String category)
Create a logger matching the supplied category.

Specified by:
getLogger in interface Logger
Parameters:
category - the category name
Returns:
the logging channel

toString

public String toString()
Return a string representation of this logger.

Overrides:
toString in class Object
Returns:
the string value