Class XRSimpleLogFormatter


  • public class XRSimpleLogFormatter
    extends Formatter
    A java.util.logging.Formatter class that writes a bare-bones log messages, with no origin class name and no date/time.
    Author:
    Patrick Wright
    • Constructor Detail

      • XRSimpleLogFormatter

        public XRSimpleLogFormatter()
        Constructor for the XRSimpleLogFormatter object
    • Method Detail

      • format

        public String format​(LogRecord record)
        Format the given log record and return the formatted string.
        Specified by:
        format in class Formatter
        Parameters:
        record - PARAM
        Returns:
        Returns
      • formatMessage

        public String formatMessage​(LogRecord record)
        Localize and format the message string from a log record.
        Overrides:
        formatMessage in class Formatter
        Parameters:
        record - PARAM
        Returns:
        Returns
      • getHead

        public String getHead​(Handler h)
        Return the header string for a set of formatted records.
        Overrides:
        getHead in class Formatter
        Parameters:
        h - PARAM
        Returns:
        The head value
      • getTail

        public String getTail​(Handler h)
        Return the tail string for a set of formatted records.
        Overrides:
        getTail in class Formatter
        Parameters:
        h - PARAM
        Returns:
        The tail value