com.gigaspaces.logger
Class GSSimpleFormatter
java.lang.Object
java.util.logging.Formatter
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.
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. |
GSSimpleFormatter
public GSSimpleFormatter()
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.