Package burp.mcp.util

Class ErrorLogger

java.lang.Object
burp.mcp.util.ErrorLogger

public class ErrorLogger extends Object
File-based error logger with log rotation (max 5MB, keep 3 files), structured JSON-lines output, and JVM info header on new sessions. All writes are guarded — a disk-full IOException will never crash the server.
  • Constructor Details

    • ErrorLogger

      public ErrorLogger()
  • Method Details

    • setLogPath

      public static void setLogPath(String customPath)
      Set a custom log path. Call this before any logging happens.
    • getLogPath

      public static Path getLogPath()
    • log

      public static void log(LogEntry entry)
    • log

      public static void log(String context, Throwable t)
      Legacy convenience — logs a throwable with context as a structured entry.