public class DatabaseHandler extends Object implements LoggerHandler
| Constructor and Description |
|---|
DatabaseHandler(String dsn,
String user,
String pass,
String table,
String worldName,
Logger logger)
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the logger.
|
void |
logEvent(BlacklistEvent event,
String comment)
Log an event.
|
public DatabaseHandler(String dsn, String user, String pass, String table, String worldName, Logger logger)
dsn - The DSN for the connectionuser - The username to connect withpass - The password to connect withtable - The table to log toworldName - The name of the world to loglogger - The logger to log errors topublic void logEvent(BlacklistEvent event, String comment)
LoggerHandlerlogEvent in interface LoggerHandlerevent - The eventcomment - The comment to log with the eventpublic void close()
LoggerHandlerclose in interface LoggerHandlerCopyright © 2015. All Rights Reserved.