Class PrintTraceHandler

java.lang.Object
org.eclipse.net4j.util.om.trace.PrintTraceHandler
All Implemented Interfaces:
OMTraceHandler

public class PrintTraceHandler extends Object implements OMTraceHandler
Author:
Eike Stepper
  • Field Details

  • Constructor Details

    • PrintTraceHandler

      public PrintTraceHandler(PrintStream stream)
    • PrintTraceHandler

      protected PrintTraceHandler()
  • Method Details

    • 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