org.eclipse.net4j.util.om.trace
Class PrintTraceHandler
java.lang.Object
org.eclipse.net4j.util.om.trace.PrintTraceHandler
- All Implemented Interfaces:
- OMTraceHandler
- public class PrintTraceHandler
- extends Object
- implements OMTraceHandler
A trace handler
that appends trace events
to a print stream
.
Method Summary |
static String |
format(boolean shortContext,
OMTraceHandlerEvent event)
|
static String |
format(String pattern,
OMTraceHandlerEvent event)
Pattern arguments:
{0} --> String tracerName
{1} --> String tracerShort
{2} --> String contextName
{3} --> String contextShort
{4} --> long timeStamp
{5} --> String message
{6} --> String threadName
{7} --> long threadID
{8} --> int threadPriority
{9} --> Thread.State threadState
|
String |
getPattern()
|
PrintStream |
getStream()
|
boolean |
isShortContext()
|
void |
setPattern(String pattern)
Pattern arguments:
{0} --> String tracerName
{1} --> String tracerShort
{2} --> String contextName
{3} --> String contextShort
{4} --> long timeStamp
{5} --> String message
{6} --> String threadName
{7} --> long threadID
{8} --> int threadPriority
{9} --> Thread.State threadState
|
void |
setShortContext(boolean shortContext)
|
void |
traced(OMTraceHandlerEvent event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONSOLE
public static final PrintTraceHandler CONSOLE
PrintTraceHandler
public PrintTraceHandler(PrintStream stream)
PrintTraceHandler
protected PrintTraceHandler()
getStream
public PrintStream getStream()
- Since:
- 3.2
getPattern
public String getPattern()
setPattern
public void setPattern(String pattern)
- Pattern arguments:
- {0} --> String tracerName
- {1} --> String tracerShort
- {2} --> String contextName
- {3} --> String contextShort
- {4} --> long timeStamp
- {5} --> String message
- {6} --> String threadName
- {7} --> long threadID
- {8} --> int threadPriority
- {9} --> Thread.State threadState
isShortContext
public boolean isShortContext()
setShortContext
public void setShortContext(boolean shortContext)
traced
public void traced(OMTraceHandlerEvent event)
- Specified by:
traced
in interface OMTraceHandler
format
public static String format(boolean shortContext,
OMTraceHandlerEvent event)
format
public static String format(String pattern,
OMTraceHandlerEvent event)
- Pattern arguments:
- {0} --> String tracerName
- {1} --> String tracerShort
- {2} --> String contextName
- {3} --> String contextShort
- {4} --> long timeStamp
- {5} --> String message
- {6} --> String threadName
- {7} --> long threadID
- {8} --> int threadPriority
- {9} --> Thread.State threadState
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.