Bases: Protocol
Logger interface used throughout the SDK.
Every method takes an arbitrary list of arguments, joined with spaces by the
host, and writes one log entry at the matching severity. debug and
trace are dropped unless that level is enabled for the plugin.
Example
self.logger.log("connected to", host)
log
Log an informational entry.
error
error(*args: Any) -> None
Log a failure or unexpected condition.
warn
Log a problem that does not stop execution.
success
success(*args: Any) -> None
Log a confirmation of a completed operation.
debug
debug(*args: Any) -> None
Log a diagnostic entry, dropped unless debug logging is enabled.
trace
trace(*args: Any) -> None
Log a fine-grained diagnostic entry, dropped unless trace logging is enabled.
attention
attention(*args: Any) -> None
Log a highlighted entry that stands out in the log stream.