net.dpml.http
Class LogAdapter

java.lang.Object
  extended bynet.dpml.http.LogAdapter
All Implemented Interfaces:
Logger

public class LogAdapter
extends Object
implements Logger

Wrapper to redirect Jetty logging to standard JVM logging.

Version:
0.0.1
Author:
Digital Product Meta Library

Constructor Summary
LogAdapter()
          Creation of a new log 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

LogAdapter

public LogAdapter()
Creation of a new log 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.

Returns:
the string value