Class NiceLogFormatter


  • public class NiceLogFormatter
    extends java.util.logging.Formatter
    NiceLogFormatter conforms to the logging format defined by the Log Working Group in Java Webservices Org. The specified format is "[#|DATETIME|LOG_LEVEL|PRODUCT_ID|LOGGER NAME|OPTIONAL KEY VALUE PAIRS| MESSAGE|#]\n"
    Version:
    $Revision$
    Author:
    Shreedhar Ganapathy Date: Jun 6, 2006
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.util.logging.LogRecord record)  
      java.lang.String formatMessage​(java.util.logging.LogRecord record)  
      protected java.lang.String getProductId()
      Sun One AppServer SE/EE can override to specify their product version
      • Methods inherited from class java.util.logging.Formatter

        getHead, getTail
      • Methods inherited from class java.lang.Object

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

      • NiceLogFormatter

        public NiceLogFormatter()
    • Method Detail

      • format

        public java.lang.String format​(java.util.logging.LogRecord record)
        Specified by:
        format in class java.util.logging.Formatter
      • formatMessage

        public java.lang.String formatMessage​(java.util.logging.LogRecord record)
        Overrides:
        formatMessage in class java.util.logging.Formatter
      • getProductId

        protected java.lang.String getProductId()
        Sun One AppServer SE/EE can override to specify their product version
        Returns:
        product ID