Class ODLLogFormatter

  • All Implemented Interfaces:
    LogEventBroadcaster

    public class ODLLogFormatter
    extends AnsiColorFormatter
    implements LogEventBroadcaster
    ODLLogFormatter conforms to the logging format defined by the Log Working Group in Oracle. The specified format is "[[timestamp] [organization ID] [Message Type/Level] [Message ID] [Logger Name] [Thread ID] [Extra Attributes] [Message]]\n"
    Author:
    Naman Mehta
    • Constructor Detail

      • ODLLogFormatter

        public ODLLogFormatter()
      • ODLLogFormatter

        public ODLLogFormatter​(String excludeFields)
    • Method Detail

      • format

        public String format​(LogRecord record)
        _REVISIT_: Replace the String Array with an HashMap and do some benchmark to determine whether StringCat is faster or Hashlookup for the template is faster.
        Specified by:
        format in class Formatter
      • getRecordFieldSeparator

        public String getRecordFieldSeparator()
      • setRecordFieldSeparator

        public void setRecordFieldSeparator​(String recordFieldSeparator)
      • getRecordDateFormat

        public String getRecordDateFormat()
      • setRecordDateFormat

        public void setRecordDateFormat​(String recordDateFormat)
      • getMessageWithoutMessageID

        public String getMessageWithoutMessageID​(String message)