Constructor | Description |
---|---|
JdbcWriter(java.util.Map<java.lang.String,java.lang.String> properties) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Closes the writer.
|
void |
flush() |
Outputs buffered log entries immediately.
|
java.util.Collection<LogEntryValue> |
getRequiredLogEntryValues() |
Returns all log entry values that are required for outputting a log entry.
|
void |
write(LogEntry logEntry) |
Outputs a given log entry.
|
public JdbcWriter(java.util.Map<java.lang.String,java.lang.String> properties) throws javax.naming.NamingException, java.sql.SQLException
properties
- Configuration for writerjavax.naming.NamingException
- Data source cannot be foundjava.sql.SQLException
- Database connection cannot be establishedpublic java.util.Collection<LogEntryValue> getRequiredLogEntryValues()
Writer
getRequiredLogEntryValues
in interface Writer
LogEntry
objectspublic void write(LogEntry logEntry) throws java.sql.SQLException
Writer
public void flush() throws java.sql.SQLException
Writer
Copyright © 2018. All rights reserved.