AyCode.Core/AyCode.Core.Server/docs/LOGGING
Loretta affa85e5c5 [LOADED_DOCS: 4 files, no new loads]
Refactor docs: topic folders, TOON, XCUT, protocol sync

- Migrated all topic documentation into dedicated folders with canonical `README.md`, `ISSUES.md`, and `TODO.md` per topic (e.g., `LOGGING/`, `SIGNALR/`, `BINARY/`, `TOON/`).
- Added comprehensive TOON serializer documentation: design, format, options, attributes, inference, issues, and TODOs.
- Introduced `XCUT` folder for cross-cutting issues and TODOs, with canonical entries and topic cross-references.
- Updated all references and navigation to use new folder-based doc paths; fixed links and clarified doc structure.
- Enhanced AI agent protocol: enforce session skill preloading, `[LOADED_DOCS: ...]` short-name prefix, and mandatory `docs-check` skill for doc/code sync.
- Updated `.csproj` to include all `README.md` files for IDE visibility.
- Improved and clarified SignalR, grid, and project-level documentation.
- Minor code/test tweaks and doc content corrections for consistency.
2026-04-24 21:54:04 +02:00
..
README.md [LOADED_DOCS: 4 files, no new loads] 2026-04-24 21:54:04 +02:00

README.md

Server Logging

Server-side logging extensions. For core framework (base classes, configuration, LogLevel, ILogger bridge) see AyCode.Core/AyCode.Core/docs/LOGGING/README.md. For remote writers (HTTP, browser, SignalR) see AyCode.Services/docs/LOGGING/README.md.

GlobalLogger

Server-side singleton for static access. Wraps an internal AcGlobalLoggerBase instance (sealed AcLoggerBase subclass):

GlobalLogger.Info("Server started");
GlobalLogger.Error("Failed to process", ex, "MyCategory");
GlobalLogger.Writer<IAcConsoleLogWriter>()?.Suggest("hint");

Default category: "GLOBAL_LOGGER". Reads config from appsettings.json like any other AcLoggerBase instance.

All static methods mirror the IAcLogWriterBase contract: Detail, Debug, Info, Warning, Suggest, Error, Write.

Key Source Files

Component Path
GlobalLogger Loggers/GlobalLogger.cs