com.ithit.webdav.server
Class DefaultLoggerImpl

java.lang.Object
  extended by com.ithit.webdav.server.DefaultLoggerImpl
All Implemented Interfaces:
Logger

public class DefaultLoggerImpl
extends java.lang.Object
implements Logger

Default implementation of logger which logs output to the servlet log.


Constructor Summary
DefaultLoggerImpl(javax.servlet.ServletContext context)
           
 
Method Summary
 boolean isDebugEnabled()
          Determines whether debug logging shall be performed.
 void logDebug(java.lang.String message)
          Engine calls this method to log debug message.
 void logError(java.lang.String message, java.lang.Throwable ex)
          Engine calls this method to log error message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLoggerImpl

public DefaultLoggerImpl(javax.servlet.ServletContext context)
Method Detail

logDebug

public void logDebug(java.lang.String message)
Description copied from interface: Logger
Engine calls this method to log debug message.

Specified by:
logDebug in interface Logger
Parameters:
message - to be logged.

logError

public void logError(java.lang.String message,
                     java.lang.Throwable ex)
Description copied from interface: Logger
Engine calls this method to log error message.

Specified by:
logError in interface Logger
Parameters:
message - message to be logged.
ex - exception that has occurred.

isDebugEnabled

public boolean isDebugEnabled()
Description copied from interface: Logger
Determines whether debug logging shall be performed.

Specified by:
isDebugEnabled in interface Logger
Returns:
whether debug logging shall be performed.


Copyright © 2009 ITHit. All Rights Reserved.