Package com.yahoo.container.logging
Class LogFormatter
java.lang.Object
java.util.logging.Formatter
com.yahoo.container.logging.LogFormatter
Produces compact output format for prelude logs
- Author:
- Bob Travis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
insertDate
(String pattern, long time) Static insertDate method will insert date fragments into a string based on '%x' pattern elements.void
messageOnly
(boolean messageOnly) Make it possible to log stripped messagesMethods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
-
Constructor Details
-
LogFormatter
public LogFormatter()Standard constructor
-
-
Method Details
-
messageOnly
public void messageOnly(boolean messageOnly) Make it possible to log stripped messages -
format
-
insertDate
Static insertDate method will insert date fragments into a string based on '%x' pattern elements. Equivalents in SimpleDateFormatter patterns, with examples:- %Y YYYY 2003
- %m MM 08
- %x MMM Aug
- %d dd 25
- %H HH 14
- %M mm 30
- %S ss 35
- %s SSS 123
- %Z Z -0400
- %T Long.toString(time)
- %% %
-