org.jaudiotagger.logging
Class LogFormatter
java.lang.Object
java.util.logging.Formatter
org.jaudiotagger.logging.LogFormatter
public final class LogFormatter
- extends java.util.logging.Formatter
For Formatting log output
This is not required by jaudiotagger, but its advantage over the default formatter is that all the format for a log
entry is on one line, making it much easier to read. To use this formatter with your code edit loggin.properties
within your jre/lib folder and modify as follows
e.g java.util.logging.ConsoleHandler.formatter = org.jaudiotagger.logging.LogFormatter
Method Summary |
java.lang.String |
format(java.util.logging.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 |
isObsfucated
private boolean isObsfucated
ACTION_PERFORMED
public static final java.lang.String ACTION_PERFORMED
- See Also:
- Constant Field Values
lineSeparator
private final java.lang.String lineSeparator
sfDateOut
private final java.text.SimpleDateFormat sfDateOut
date
private final java.util.Date date
IDENT
public static final java.lang.String IDENT
- See Also:
- Constant Field Values
LogFormatter
public LogFormatter()
format
public final java.lang.String format(java.util.logging.LogRecord record)
- Specified by:
format
in class java.util.logging.Formatter