Class HtmlFormatter


  • public class HtmlFormatter
    extends java.util.logging.Formatter
    This class handles formatting the log into a html table
    • Constructor Summary

      Constructors 
      Constructor Description
      HtmlFormatter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.util.logging.LogRecord logRecord)
      Create a log row in the html table
      java.lang.String getHead​(java.util.logging.Handler handler)
      This method is called to get the head of the log
      java.lang.String getTail​(java.util.logging.Handler handler)
      This method is called to get the tail of the log
      • Methods inherited from class java.util.logging.Formatter

        formatMessage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HtmlFormatter

        public HtmlFormatter()
    • Method Detail

      • format

        public java.lang.String format​(java.util.logging.LogRecord logRecord)
        Create a log row in the html table
        Specified by:
        format in class java.util.logging.Formatter
        Parameters:
        logRecord - The record to insert into the table
        Returns:
        Returns the log row in html
      • getHead

        public java.lang.String getHead​(java.util.logging.Handler handler)
        This method is called to get the head of the log
        Overrides:
        getHead in class java.util.logging.Formatter
        Parameters:
        handler - The handler
        Returns:
        Returns the header of the log
      • getTail

        public java.lang.String getTail​(java.util.logging.Handler handler)
        This method is called to get the tail of the log
        Overrides:
        getTail in class java.util.logging.Formatter
        Parameters:
        handler - The handler
        Returns:
        Returns the tail of the log