toolbox.services.util.logging
Class LoggingServiceCommonsLoggingImpl

Package class diagram package LoggingServiceCommonsLoggingImpl
java.lang.Object
  extended by toolbox.services.util.logging.LoggingServiceCommonsLoggingImpl
All Implemented Interfaces:
LoggingService

public class LoggingServiceCommonsLoggingImpl
extends java.lang.Object
implements LoggingService

LoggingService implementation that makes use of the Apache Commons Logging framework to output LogMessages


Constructor Summary
LoggingServiceCommonsLoggingImpl()
          Default constructor.
 
Method Summary
 void log(LogMessage message)
          Log the given message using the level set on the message.
 void logError(LogMessage message)
          Log the given message as an error (ERROR).
 void logFatal(LogMessage message)
          Log the given message as fatal (FATAL).
 void logInfo(LogMessage message)
          Log the given message as informational (INFO).
 void logWarning(LogMessage message)
          Log the given message as a warning (WARN).
 void setLoggingFormatter(LoggingFormatter formatter)
          Injection point for the LoggingFormatter dependency.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingServiceCommonsLoggingImpl

public LoggingServiceCommonsLoggingImpl()
Default constructor.

Method Detail

logInfo

public void logInfo(LogMessage message)
Log the given message as informational (INFO).

Specified by:
logInfo in interface LoggingService
Parameters:
message - LogMessage to log.

logWarning

public void logWarning(LogMessage message)
Log the given message as a warning (WARN).

Specified by:
logWarning in interface LoggingService
Parameters:
message - LogMessage to log.

logError

public void logError(LogMessage message)
Log the given message as an error (ERROR).

Specified by:
logError in interface LoggingService
Parameters:
message - LogMessage to log.

logFatal

public void logFatal(LogMessage message)
Log the given message as fatal (FATAL).

Specified by:
logFatal in interface LoggingService
Parameters:
message - LogMessage to log.

log

public void log(LogMessage message)
Log the given message using the level set on the message.

Specified by:
log in interface LoggingService
Parameters:
message - LogMessage to log.

setLoggingFormatter

public void setLoggingFormatter(LoggingFormatter formatter)
Injection point for the LoggingFormatter dependency.

Parameters:
formatter - LoggingFormatter to use.