Class ReplicationLogger
java.lang.Object
org.apache.derby.impl.store.replication.ReplicationLogger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Print error message and the stack trace of the throwable to the log (usually derby.log) provided that verbose is true.void
Print a text to the log (usually derby.log), provided that verbose is true.
-
Field Details
-
verbose
private final boolean verboseWhether 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". -
dbname
The name of the replicated database
-
-
Constructor Details
-
ReplicationLogger
-
-
Method Details
-
logError
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.- Parameters:
msgId
- The error message idt
- Error trace starts from this error
-
logText
Print a text to the log (usually derby.log), provided that verbose is true.- Parameters:
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.
-