toolbox.services.util.logging
Class LoggingServiceDbImpl

Package class diagram package LoggingServiceDbImpl
java.lang.Object
  extended by toolbox.services.BaseService
      extended by toolbox.services.dao.DaoService
          extended by toolbox.services.util.logging.LoggingServiceDbImpl
All Implemented Interfaces:
Service, LoggingService

public class LoggingServiceDbImpl
extends DaoService
implements LoggingService

LoggingService implementation that logs messages to a database table.

The default table definition can be found in the share/sql/logging directory of the toolbox distribution.

This implementation has been tested against Mysql 5 and Oracle 10g.


Constructor Summary
LoggingServiceDbImpl()
          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).
 
Methods inherited from class toolbox.services.dao.DaoService
checkConstraint, create, destroy, doCustomQuery, doCustomQuery, getDaoManager, getDaoWorker, getNextSequenceValue, insertDaoBean, insertDaoBean, updateDaoBean, updateDaoBean
 
Methods inherited from class toolbox.services.BaseService
getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingServiceDbImpl

public LoggingServiceDbImpl()
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.