Writer
public final class JdbcWriter extends AbstractWriter
Constructor | Description |
---|---|
JdbcWriter() |
|
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.
|
getBooleanValue, getStringValue
public JdbcWriter() throws javax.naming.NamingException, java.sql.SQLException
javax.naming.NamingException
- Data source cannot be foundjava.sql.SQLException
- Database connection cannot be establishedpublic 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
LogEntry
objectspublic void write(LogEntry logEntry) throws java.sql.SQLException
Writer
logEntry
- Log entry to outputjava.sql.SQLException
public void flush() throws java.sql.SQLException
Writer
java.sql.SQLException
public void close() throws java.sql.SQLException
Writer
java.sql.SQLException
Copyright © 2022. All rights reserved.