org.crosswire.common.util
Class PatternFormatter
java.lang.Object
java.util.logging.Formatter
org.crosswire.common.util.PatternFormatter
public class PatternFormatter
- extends Formatter
Formats a log entry by pattern.
- {0} is the Date
- {1} is the name of the logger
- {2} is the level of the record
- {3} is the message
- {4} is the throwable
- {5} is the class name (typically the same as the logger's name)
- {6} is the method name
- {7} is the line number
- {8} is the system supplied new line
- Author:
- DM Smith [dmsmith555 at yahoo dot com], Joe Walker [joe at eireneh dot com]
- See Also:
for license details.
The copyright to this program is held by it's authors.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dat
private Date dat
DEFAULT_FORMAT
private static final String DEFAULT_FORMAT
- See Also:
- Constant Field Values
formatter
private MessageFormat formatter
lineSeparator
private String lineSeparator
PatternFormatter
public PatternFormatter()
format
public String format(LogRecord record)
- Format the given LogRecord.
- Specified by:
format
in class Formatter
- Parameters:
record
- the log record to be formatted.
- Returns:
- a formatted log record