nl.tudelft.simulation.logger.formatters
Class StyledTextFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by nl.tudelft.simulation.logger.formatters.StyledTextFormatter

public class StyledTextFormatter
extends Formatter

A StyledTextFormatter
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:26:12 $
Author:
Peter Jacobs , Niels Lang

Field Summary
static String SEPARATOR
          The separator used
static String STYLE_DEFAULT
          the DEFAULT_STYLE
static String STYLE_FINE
          THE FINE_STYLE
static String STYLE_ORIGIN
          THE ORIGIN_STYLE
static String STYLE_SOURCE
          the SOURCE_STYLE
static String STYLE_WARNING
          the WARNING_STYLE
 
Constructor Summary
StyledTextFormatter(boolean showOrigin)
          constructs a new StyledTextFormatter
 
Method Summary
 String format(LogRecord record)
           
 
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
 

Field Detail

STYLE_DEFAULT

public static final String STYLE_DEFAULT
the DEFAULT_STYLE

See Also:
Constant Field Values

STYLE_SOURCE

public static final String STYLE_SOURCE
the SOURCE_STYLE

See Also:
Constant Field Values

STYLE_WARNING

public static final String STYLE_WARNING
the WARNING_STYLE

See Also:
Constant Field Values

STYLE_FINE

public static final String STYLE_FINE
THE FINE_STYLE

See Also:
Constant Field Values

STYLE_ORIGIN

public static final String STYLE_ORIGIN
THE ORIGIN_STYLE

See Also:
Constant Field Values

SEPARATOR

public static final String SEPARATOR
The separator used

See Also:
Constant Field Values
Constructor Detail

StyledTextFormatter

public StyledTextFormatter(boolean showOrigin)
constructs a new StyledTextFormatter

Parameters:
showOrigin - whether or not to show the origin
Method Detail

format

public String format(LogRecord record)
Specified by:
format in class Formatter
See Also:
Formatter.format(java.util.logging.LogRecord)


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.