com.sleepycat.je.utilint
Class TracerFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.sleepycat.je.utilint.TracerFormatter
Direct Known Subclasses:
ReplicationFormatter

public class TracerFormatter
extends Formatter

Formatter for java.util.logging output.


Constructor Summary
TracerFormatter()
           
TracerFormatter(String envName)
           
 
Method Summary
protected  void appendEnvironmentName(StringBuilder sb)
           
 String format(LogRecord record)
          Format the log record in this form:
protected  String getDate(long millis)
           
protected  void getThrown(LogRecord record, StringBuilder sb)
           
static DateFormat makeDateFormat()
           
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TracerFormatter

public TracerFormatter()

TracerFormatter

public TracerFormatter(String envName)
Method Detail

getDate

protected String getDate(long millis)

format

public String format(LogRecord record)
Format the log record in this form:

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

appendEnvironmentName

protected void appendEnvironmentName(StringBuilder sb)

getThrown

protected void getThrown(LogRecord record,
                         StringBuilder sb)

makeDateFormat

public static DateFormat makeDateFormat()


Copyright (c) 2004-2012 Oracle. All rights reserved.