Skip to main content
ctx.logger (PluginLogger) provides standard log methods, automatically prefixed with your plugin ID in the log output.
ctx.logger.info("MyPlugin", "Server ready");
ctx.logger.warn("MyPlugin", "Retrying connection...");
ctx.logger.error("MyPlugin", "Failed to fetch fleet data", error);
ctx.logger.debug("MyPlugin", "Polling interval set", { interval });
When to use it: any time your background module needs to record what it’s doing. Output is written to the shell’s daily log files with secrets redacted, so prefer this over console.* — it’s the logging that’s actually captured for support and debugging.