public class ReplicationLogger
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
private java.lang.String |
dbname |
The name of the replicated database
|
private boolean |
verbose |
Whether or not to print log messages to derby.log.
|
Constructor | Description |
---|---|
ReplicationLogger(java.lang.String dbname) |
Modifier and Type | Method | Description |
---|---|---|
void |
logError(java.lang.String msgId,
java.lang.Throwable t) |
Print error message and the stack trace of the throwable to the
log (usually derby.log) provided that verbose
is true.
|
void |
logText(java.lang.String text,
boolean writeHeader) |
Print a text to the log (usually derby.log), provided that
verbose is true.
|
private final boolean verbose
private final java.lang.String dbname
public void logError(java.lang.String msgId, java.lang.Throwable t)
msgId
- The error message idt
- Error trace starts from this errorpublic void logText(java.lang.String text, boolean writeHeader)
text
- The text that will be loggedwriteHeader
- 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.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.