Package oracle.jdbc.diagnostics
Class OracleXMLFormatter
java.lang.Object
java.util.logging.Formatter
java.util.logging.XMLFormatter
oracle.jdbc.diagnostics.OracleXMLFormatter
Format a LogRecord into a standard XML format.
Add Oracle specific logging parameters, if present.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voida2(StringBuilder sb, int x) Append a two-digit number.protected voidprotected voidappendSecurityLabel(StringBuilder sb, OracleLogRecord record) protected voidprotected voidappendTraceAttributes(StringBuilder sb, OracleLogRecord record) The only thing new about this class is that it adds the trace attributes, if any, to the log node.protected voidescape(StringBuilder sb, String text) Append to the given StringBuilder an escaped version of the given text string where XML special characters have been escaped.Format a LogRecord into a standard XML format.Methods inherited from class java.util.logging.XMLFormatter
getHead, getTailMethods inherited from class java.util.logging.Formatter
formatMessage
-
Constructor Details
-
OracleXMLFormatter
public OracleXMLFormatter()
-
-
Method Details
-
format
Format a LogRecord into a standard XML format. Add Oracle specific logging parameters, if present.- Overrides:
formatin classXMLFormatter- Parameters:
record- the log record to be formatted.- Returns:
- a formatted log record
-
appendStartTag
-
appendSecurityLabel
-
appendTraceAttributes
The only thing new about this class is that it adds the trace attributes, if any, to the log node.- Parameters:
record-sb-
-
appendEndTag
-
a2
Append a two-digit number. Identical to the private method of the same signature defined in java.util.logging.XMLFormatter. -
escape
Append to the given StringBuilder an escaped version of the given text string where XML special characters have been escaped. For a null string we append "" Identical to the private method of the same signature defined in java.util.logging.XMLFormatter.
-