| Modifier and Type | Field and Description |
|---|---|
| private final String | dbname
The name of the replicated database |
| private final boolean | verbose
Whether or not to print log messages to derby.log. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | logText(String
The text that will be logged text, boolean if true, encapsulates message in "begin
error message" and "end error message" lines. If false,
timestamps the text and writes it to the log without the header
and footer. writeHeader)Print a text to the log (usually derby.log), provided that verbose is true. |
| dbname | back to summary |
|---|---|
| private final String dbname The name of the replicated database | |
| verbose | back to summary |
|---|---|
| private final boolean verbose Whether or not to print log messages to derby.log. Defaults to true, but can be set to false with derby property "derby.replication.verbose=false". | |
| ReplicationLogger | back to summary |
|---|---|
| public ReplicationLogger(String dbname) | |
| logError | back to summary |
|---|---|
| public void logError(String msgId, Throwable t) Print error message and the stack trace of the throwable to the log (usually derby.log) provided that verbose is true. If verbose is false, nothing is logged. | |
| logText | back to summary |
|---|---|
| public void logText(String text, boolean writeHeader) Print a text to the log (usually derby.log), provided that verbose is true.
| |