Package burp.mcp.util
Class ErrorLogger
java.lang.Object
burp.mcp.util.ErrorLogger
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Pathstatic voidstatic voidLegacy convenience — logs a throwable with context as a structured entry.static voidsetLogPath(String customPath) Set a custom log path.
-
Constructor Details
-
ErrorLogger
public ErrorLogger()
-
-
Method Details
-
setLogPath
Set a custom log path. Call this before any logging happens. -
getLogPath
-
log
-
log
Legacy convenience — logs a throwable with context as a structured entry.
-