Class TimestampingMethodNameLogFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- com.metsci.glimpse.util.logging.format.Formatter
-
- com.metsci.glimpse.util.logging.format.TerseMethodNameLogFormatter
-
- com.metsci.glimpse.util.logging.format.TimestampingMethodNameLogFormatter
-
- Direct Known Subclasses:
FinegrainedTimestampingLogFormatter
public class TimestampingMethodNameLogFormatter extends TerseMethodNameLogFormatter
Extends TerseLogFormatter to include a timestamp before each line.- Author:
- hogye
-
-
Constructor Summary
Constructors Constructor Description TimestampingMethodNameLogFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(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
-
-
-
-
Method Detail
-
format
public String format(LogRecord record)
Description copied from class:FormatterThis 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:
formatin classTerseMethodNameLogFormatter- See Also:
Formatter.format(java.util.logging.LogRecord)
-
-