Package org.eclipse.net4j.util.om.trace
Class PrintTraceHandler
java.lang.Object
org.eclipse.net4j.util.om.trace.PrintTraceHandler
- All Implemented Interfaces:
OMTraceHandler
- Author:
- Eike Stepper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
format
(boolean shortContext, OMTraceHandlerEvent event) static String
format
(String pattern, OMTraceHandlerEvent event) Pattern arguments:boolean
void
setPattern
(String pattern) Pattern arguments:void
setShortContext
(boolean shortContext) void
traced
(OMTraceHandlerEvent event)
-
Field Details
-
CONSOLE
-
-
Constructor Details
-
PrintTraceHandler
-
PrintTraceHandler
protected PrintTraceHandler()
-
-
Method Details
-
getStream
- Since:
- 3.2
-
getPattern
-
setPattern
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
- Specified by:
traced
in interfaceOMTraceHandler
-
format
-
format
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
-