com.metsci.glimpse.util.logging.format
Class MultilineLogFormatter
java.lang.Object
java.util.logging.Formatter
com.metsci.glimpse.util.logging.format.Formatter
com.metsci.glimpse.util.logging.format.MultilineLogFormatter
public class MultilineLogFormatter
- extends Formatter
Produces "Multiline" Log Messages which place each of LEVEL, CLASS, METHOD, MSG, and TIME on a
separate line.
- Author:
- moskowitz
Method Summary |
java.lang.String |
format(java.util.logging.LogRecord rec)
This method should be called via super.format(record) as the first line of any subclass
format method. |
java.lang.String |
getHead(java.util.logging.Handler h)
|
java.lang.String |
getTail(java.util.logging.Handler h)
|
Methods inherited from class java.util.logging.Formatter |
formatMessage |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultilineLogFormatter
public MultilineLogFormatter()
format
public java.lang.String format(java.util.logging.LogRecord rec)
- Description copied from class:
Formatter
- 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).
- Overrides:
format
in class Formatter
- See Also:
Formatter.format(java.util.logging.LogRecord)
getHead
public java.lang.String getHead(java.util.logging.Handler h)
- Overrides:
getHead
in class java.util.logging.Formatter
getTail
public java.lang.String getTail(java.util.logging.Handler h)
- Overrides:
getTail
in class java.util.logging.Formatter
Copyright © 2012 Metron, Inc.. All Rights Reserved.