com.sun.enterprise.ee.cms.logging
Class NiceLogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.sun.enterprise.ee.cms.logging.NiceLogFormatter

public class NiceLogFormatter
extends 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: 1322 $
Author:
Shreedhar Ganapathy Date: Jun 6, 2006

Constructor Summary
NiceLogFormatter()
           
 
Method Summary
 String format(LogRecord record)
           
 String formatMessage(LogRecord record)
           
protected  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 String format(LogRecord record)
Specified by:
format in class Formatter

formatMessage

public String formatMessage(LogRecord record)
Overrides:
formatMessage in class Formatter

getProductId

protected String getProductId()
Sun One AppServer SE/EE can override to specify their product version

Returns:
product ID


Copyright © 2012. All Rights Reserved.