org.restlet.engine.log
Class SimplestFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.restlet.engine.log.SimplestFormatter

public class SimplestFormatter
extends Formatter

Special log formatter that displays the actual message only. It also displays the stack trace if available. This is particularly useful for debugging.

Author:
Jerome Louvel

Constructor Summary
SimplestFormatter()
           
 
Method Summary
 String format(LogRecord record)
          Format the given LogRecord.
 
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

SimplestFormatter

public SimplestFormatter()
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


Copyright © 2005-2013 Restlet.