Class TraceLogger

java.lang.Object
janala.logger.AbstractLogger
edu.berkeley.cs.jqf.instrument.tracing.TraceLogger
All Implemented Interfaces:
Logger

public class TraceLogger extends AbstractLogger
A singleton class which manages per-thread tracers. This class is used both to log instrumented instructions via SingleSnoop, as well as to provide programmatic access to emit TraceEvents.
Author:
Rohan Padhye
  • Method Details

    • get

      public static TraceLogger get()
      Returns a handle to the singleton instance.
      Returns:
      a handle to the singleton instance
    • log

      protected void log(Instruction instruction)
      Logs an instrumented byteode instruction for the current thread.
      Specified by:
      log in class AbstractLogger
    • emit

      public void emit(TraceEvent event)
      Emits a trace event for the current thread.
      Parameters:
      event - the event to be emitted
    • remove

      public void remove()
      Removes the trace logger for the current thread