Class OracleXMLFormatter


public class OracleXMLFormatter extends XMLFormatter
Format a LogRecord into a standard XML format. Add Oracle specific logging parameters, if present.
  • Constructor Details

    • OracleXMLFormatter

      public OracleXMLFormatter()
  • Method Details

    • format

      public String format(LogRecord record)
      Format a LogRecord into a standard XML format. Add Oracle specific logging parameters, if present.

      Overrides:
      format in class XMLFormatter
      Parameters:
      record - the log record to be formatted.
      Returns:
      a formatted log record
    • appendStartTag

      protected void appendStartTag(StringBuilder sb)
    • appendSecurityLabel

      protected void appendSecurityLabel(StringBuilder sb, OracleLogRecord record)
    • appendTraceAttributes

      protected void appendTraceAttributes(StringBuilder sb, OracleLogRecord record)
      The only thing new about this class is that it adds the trace attributes, if any, to the log node.
      Parameters:
      record -
      sb -
    • appendEndTag

      protected void appendEndTag(StringBuilder sb)
    • a2

      protected void a2(StringBuilder sb, int x)
      Append a two-digit number. Identical to the private method of the same signature defined in java.util.logging.XMLFormatter.
    • escape

      protected void escape(StringBuilder sb, String text)
      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.