> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skyvexsoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ctx.logger

> Scoped logging from a background module.

`ctx.logger` (`PluginLogger`) provides standard log methods, automatically prefixed with your plugin ID in the log output.

```ts theme={null}
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.
