com.gigaspaces.logger
Class GSSimpleFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.gigaspaces.logger.GSSimpleFormatter

public class GSSimpleFormatter
extends Formatter

Print a brief summary of the LogRecord in a human readable format. This class is a variation of java.util.logging.SimpleFormatter, that was customized for GigaSpaces purposes.


Constructor Summary
GSSimpleFormatter()
           
 
Method Summary
 String format(LogRecord record)
          Format the given LogRecord.
static void setFormat(String format)
          Set format value. the default is: "{0}: {1,date} {1,time} {2}" This value can be changed via log configuration file.
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSSimpleFormatter

public GSSimpleFormatter()
Method Detail

format

public String format(LogRecord record)
Format the given LogRecord.

Specified by:
format in class Formatter
Parameters:
record - the log record to be formatted.
Returns:
a formatted log record

setFormat

public static void setFormat(String format)
Set format value. the default is: "{0}: {1,date} {1,time} {2}" This value can be changed via log configuration file.