Class ToolIndexLogForwarder

java.lang.Object
ai.attackframework.tools.burp.sinks.ToolIndexLogForwarder
All Implemented Interfaces:
Logger.LogListener

public final class ToolIndexLogForwarder extends Object implements Logger.LogListener
Forwards extension log events to the IndexNaming.INDEX_PREFIX (attackframework-tool-burp) index so the Attack Framework can analyze extension/OpenSearch issues centrally.

Registers as a Logger.LogListener; each log event is queued and pushed asynchronously by a single worker thread. Pushes when export is running and at least one sink is enabled. Fire-and-forget; failures are not logged back to avoid feedback loops. If the queue is full, the oldest event is dropped to make room.

  • Constructor Details

    • ToolIndexLogForwarder

      public ToolIndexLogForwarder()
  • Method Details

    • stop

      public void stop()
      Stops the background drain worker and clears any queued log documents.

      Safe to call multiple times. Used during extension unload so hot reload does not leave a stale forwarder thread behind.

    • onLog

      public void onLog(String level, String message)
      Specified by:
      onLog in interface Logger.LogListener