org.jaudiotagger.logging
Class LogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by 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


Field Summary
static java.lang.String ACTION_PERFORMED
           
private  java.util.Date date
           
static java.lang.String IDENT
           
private  boolean isObsfucated
           
private  java.lang.String lineSeparator
           
private  java.text.SimpleDateFormat sfDateOut
           
 
Constructor Summary
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
 

Field Detail

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
Constructor Detail

LogFormatter

public LogFormatter()
Method Detail

format

public final java.lang.String format(java.util.logging.LogRecord record)
Specified by:
format in class java.util.logging.Formatter