Skip to content

Logging

Алексей . edited this page Oct 22, 2026 · 4 revisions

Use Context.Log or SFModuleBase.Log, both run-scoped ILogger instances. Do not reference the Runtime SFLog implementation from a plugin. Use structured placeholders and pass exceptions to the matching logging overload so their stack is retained.

sf_loader.log records native loader/hostfxr setup. sf_arz.log records managed bootstrap, client detection, hooks and plugins. Its historical name does not imply an Arizona dependency. Save logs before restarting: the managed log is reset at session start.

Logging writes in the background. A native crash may prevent queued lines from reaching disk, so the last line is not necessarily the crash site. /sfd provides embedded version/commit identity for checking the actual running build.

Do not log bearer tokens, passwords or private packet payloads by default. A background writer does not make unlimited per-packet logging cheap. Prefer counters, sampled diagnostics and a dedicated recorder for datasets. DebugWeb exports bounded retained history, not a complete session recording.

Sources: logger provider, file logger, build identity. See troubleshooting.

Clone this wiki locally