org.apache.turbine.services.logging.jdbc
Interface JDBCLogger

All Known Implementing Classes:
TurbineLogger

public interface JDBCLogger

This class encapsulate the logic which is necessary to log into a table. Used by JDBCAppender.

Author:
Jason van Zyl

Method Summary
 void append(java.lang.String message)
          Log a message to the database.
 void close()
          Close off the logger.
 java.lang.String getErrorMsg()
          Allow client to get the error message from logger.
 void init(java.util.Hashtable loggerOptions)
          Initialize the logger with a Hashtable.
 boolean isReady()
          Is the logger ready.
 

Method Detail

init

public void init(java.util.Hashtable loggerOptions)
Initialize the logger with a Hashtable.
Parameters:
Hashtable - options to initialize with

append

public void append(java.lang.String message)
            throws java.lang.Exception
Log a message to the database.

getErrorMsg

public java.lang.String getErrorMsg()
Allow client to get the error message from logger.
Returns:
String error message

isReady

public boolean isReady()
Is the logger ready.
Parameters:
boolean - state of readiness.

close

public void close()
Close off the logger.


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.