Repository navigation
Logging
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.
- Главная / Home
- Установка
- Архитектура и совместимость
- SA-MP R1, R3-1, R5-1
- Написание модулей
- Плагины и зависимости
- Жизненный цикл
- API модулей
- Потоки и время жизни
- Ранняя загрузка
- Конфигурация и ассеты