org.ow2.bonita.util
Class TraceFormatter
java.lang.Object
java.util.logging.Formatter
java.util.logging.SimpleFormatter
org.ow2.bonita.util.TraceFormatter
public class TraceFormatter
- extends java.util.logging.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
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 |
UNAVAILABLE_SYMBOL
public static final java.lang.String UNAVAILABLE_SYMBOL
- See Also:
- Constant Field Values
LEGEND_MSG
public static final java.lang.String LEGEND_MSG
ALIAS_HELP
public static final java.lang.String ALIAS_HELP
ALIAS_PROPERTY_KEY
public static final java.lang.String ALIAS_PROPERTY_KEY
TraceFormatter
public TraceFormatter()
format
public java.lang.String format(java.util.logging.LogRecord record)
- Overrides:
format
in class java.util.logging.SimpleFormatter
Copyright © 2009 OW2 Consortium. All Rights Reserved.