|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.services.logging.jdbc.TurbineLogger
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.
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, toString, wait, wait, wait |
Constructor Detail |
public TurbineLogger()
Method Detail |
public void init(java.util.Hashtable loggerOptions)
JDBCLogger
init
in interface JDBCLogger
org.apache.turbine.services.logging.jdbc.JDBCLogger
Hashtable
- options to initialize withpublic void append(java.lang.String message) throws java.lang.Exception
JDBCLogger
append
in interface JDBCLogger
public java.lang.String getErrorMsg()
JDBCLogger
getErrorMsg
in interface JDBCLogger
org.apache.turbine.services.logging.jdbc.JDBCLogger
public boolean isReady()
JDBCLogger
isReady
in interface JDBCLogger
org.apache.turbine.services.logging.jdbc.JDBCLogger
boolean
- state of readiness.public void close()
JDBCLogger
close
in interface JDBCLogger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |