com.neeve.trace
Class TraceFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.neeve.trace.TraceFormatter

public final class TraceFormatter
extends Formatter

Class used to format trace messages.

This class is attached to logger handlers and is responsible for formatting trace messages before they are output.

Threading:
This class is safe for concurrent access by multiple threads.

Constructor Summary
TraceFormatter()
           
 
Method Summary
static TraceFormatter create()
          Create a formatter.
 String format(LogRecord record)
          Format a trace message.
 
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

TraceFormatter

public TraceFormatter()
Method Detail

create

public static TraceFormatter create()
Create a formatter.

Threading:
This method is safe for concurrent access by multiple threads

format

public final String format(LogRecord record)
Format a trace message.

Specified by:
format in class Formatter
Threading:
This method is safe for concurrent access by multiple threads


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.