org.ow2.orchestra.util
Class TraceFormatter
java.lang.Object
java.util.logging.Formatter
java.util.logging.SimpleFormatter
org.ow2.orchestra.util.TraceFormatter
public class TraceFormatter
- extends SimpleFormatter
Custom implementation of the SimpleFormatter class.
This implementation produce the following pattern:
L DATE thr#Id Logger Class.Method(): MSG
where:
- L is a letter code for log level:
- C for Level.CONFIG;
- F for Level.FINE, Level.FINER, Level.FINEST
- I for Level.INFO
- W for Level.WARNING
- S for Level.SEVERE
- E for log.entering() or log.exiting() log type
- T for log.throwing() log type
- Id is the thread id of the caller
- Since:
- 1.0
- Version:
- $Revision: 1.4 $
- Author:
- eipi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNAVAILABLE_SYMBOL
public static final String UNAVAILABLE_SYMBOL
- See Also:
- Constant Field Values
ALIAS_PROPERTY_KEY
public static final String ALIAS_PROPERTY_KEY
LEGEND_MSG
public static final String LEGEND_MSG
ALIAS_HELP
public static final String ALIAS_HELP
TraceFormatter
public TraceFormatter()
format
public String format(LogRecord record)
- Overrides:
format in class SimpleFormatter
formatTime
public static String formatTime(long time)
- Returns a "concise" ISO-8601 "like" time format: yy-MM-dd HH:mm:ss.SSS z
This method is thread-safe.
- Parameters:
time -
- Returns:
- a string using the format yy-MM-dd HH:mm:ss.SSS z representing the given date.
Copyright © 2011 OW2 Consortium. All Rights Reserved.