Package burp.api.montoya.logging
Interface Logging
public interface Logging
Provides access to the functionality related to logging and events.
-
Method Summary
Modifier and TypeMethodDescriptionerror()
Deprecated.void
logToError
(String message) This method prints a line of output to the current extension's standard error stream.void
logToError
(String message, Throwable cause) This method prints a message and a stack trace to the current extension's standard error stream.void
logToError
(Throwable cause) This method prints a stack trace to the current extension's standard error stream.void
logToOutput
(String message) This method prints a line of output to the current extension's standard output stream.output()
Deprecated.UselogToOutput(java.lang.String)
instead.void
raiseCriticalEvent
(String message) This method can be used to display a critical event in the Burp Suite event log.void
raiseDebugEvent
(String message) This method can be used to display a debug event in the Burp Suite event log.void
raiseErrorEvent
(String message) This method can be used to display an error event in the Burp Suite event log.void
raiseInfoEvent
(String message) This method can be used to display an informational event in the Burp Suite event log.
-
Method Details
-
output
Deprecated.UselogToOutput(java.lang.String)
instead.Obtain the current extension's standard output stream. Extensions should write all output to this stream, allowing the Burp user to configure how that output is handled from within the UI.- Returns:
- The extension's standard output stream.
-
error
Deprecated.UselogToError(java.lang.String)
instead.Obtain the current extension's standard error stream. Extensions should write all error messages to this stream, allowing the Burp user to configure how that output is handled from within the UI.- Returns:
- The extension's standard error stream.
-
logToOutput
This method prints a line of output to the current extension's standard output stream.- Parameters:
message
- The message to print.
-
logToError
This method prints a line of output to the current extension's standard error stream.- Parameters:
message
- The message to print.
-
logToError
-
logToError
This method prints a stack trace to the current extension's standard error stream.- Parameters:
cause
- The cause of the error being logged.
-
raiseDebugEvent
This method can be used to display a debug event in the Burp Suite event log.- Parameters:
message
- The debug message to display.
-
raiseInfoEvent
This method can be used to display an informational event in the Burp Suite event log.- Parameters:
message
- The informational message to display.
-
raiseErrorEvent
This method can be used to display an error event in the Burp Suite event log.- Parameters:
message
- The error message to display.
-
raiseCriticalEvent
This method can be used to display a critical event in the Burp Suite event log.- Parameters:
message
- The critical message to display.
-
logToError(java.lang.String)
instead.