AyCode.Core/AyCode.Core.Server/docs/LOGGING
Loretta 3b45de6de3 [LOADED_DOCS: 3 files, no new loads]
Modernize benchmarks, simplify attributes, doc cleanup

- Benchmark output now reports per-op µs and KB/op; added helpers for unit conversion and updated all output formats and headers.
- Split SetupAllocBytes into SetupSerializeAllocBytes and SetupDeserializeAllocBytes for finer allocation reporting.
- Simplified [AcBinarySerializable] usage in test models to single-argument form.
- Edited documentation for clarity, brevity, and consistency; improved navigation, updated technical details, and harmonized terminology across .md files.
2026-05-01 14:01:23 +02:00
..
README.md [LOADED_DOCS: 3 files, no new loads] 2026-05-01 14:01:23 +02:00

README.md

Server Logging

Server-side logging extensions. Core framework (base classes, config, LogLevel, ILogger bridge): AyCode.Core/AyCode.Core/docs/LOGGING/README.md | Remote writers (HTTP, browser, SignalR): 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