org.apache.turbine.services.logging.jdbc
Class TurbineLogger

java.lang.Object
  |
  +--org.apache.turbine.services.logging.jdbc.TurbineLogger
All Implemented Interfaces:
JDBCLogger

public class TurbineLogger
extends java.lang.Object
implements JDBCLogger

An Implementation of a JDBCLogger that uses Turbine peers to do the work of inserting messages into a database. This is working in Tambora but it uses a peer equivalent called a sentry. I will implement a peer to do logging soon.

Since:
2.1
Author:
Jason van Zyl

Constructor Summary
TurbineLogger()
          Default constructor.
 
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.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

TurbineLogger

public TurbineLogger()
Default constructor.
Method Detail

init

public void init(java.util.Hashtable loggerOptions)
Description copied from interface: JDBCLogger
Initialize the logger with a Hashtable.
Specified by:
init in interface JDBCLogger
Following copied from interface: org.apache.turbine.services.logging.jdbc.JDBCLogger
Parameters:
Hashtable - options to initialize with

append

public void append(java.lang.String message)
            throws java.lang.Exception
Description copied from interface: JDBCLogger
Log a message to the database.
Specified by:
append in interface JDBCLogger

getErrorMsg

public java.lang.String getErrorMsg()
Description copied from interface: JDBCLogger
Allow client to get the error message from logger.
Specified by:
getErrorMsg in interface JDBCLogger
Following copied from interface: org.apache.turbine.services.logging.jdbc.JDBCLogger
Returns:
String error message

isReady

public boolean isReady()
Description copied from interface: JDBCLogger
Is the logger ready.
Specified by:
isReady in interface JDBCLogger
Following copied from interface: org.apache.turbine.services.logging.jdbc.JDBCLogger
Parameters:
boolean - state of readiness.

close

public void close()
Description copied from interface: JDBCLogger
Close off the logger.
Specified by:
close in interface JDBCLogger


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