com.metsci.glimpse.util.logging.format
Class Formatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.metsci.glimpse.util.logging.format.Formatter
Direct Known Subclasses:
MultilineLogFormatter, TerseLogFormatter, TerseMethodNameLogFormatter

public abstract class Formatter
extends java.util.logging.Formatter

Base class for Metron logging formatters. This exists in order to provide a base format method which will infer the correct caller and method names and inject them into the LogRecord.

Author:
moskowitz

Constructor Summary
Formatter()
           
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord record)
          This method should be called via super.format(record) as the first line of any subclass format method.
 
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

Formatter

public Formatter()
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
This method should be called via super.format(record) as the first line of any subclass format method. It infers the correct caller and method names and injects them into the LogRecord (filtering out the internal classes and methods of the Metron logging itself).

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


Copyright © 2012 Metron, Inc.. All Rights Reserved.