AyCode.Core/AyCode.Services/Loggers/README.md

913 B

Loggers

Remote log writers for sending log items over HTTP, SignalR, or to the browser console.

Key Files

  • AcHttpClientLogItemWriter.cs — Abstract generic writer extending AcLogItemWriterBase<TLogItem>. Sends log items via HTTP POST as JSON. Manages its own HttpClient lifecycle.
  • AcBrowserConsoleLogWriter.cs — Browser console writer via JS interop (IJSRuntime). Maps LogLevel to console methods (log, warn, error). Used in Blazor apps.
  • AcSignaRClientLogItemWriter.cs — Sends AcLogItemClient items to a SignalR hub. Manages HubConnection lifecycle with StartConnection()/StopConnection().

All three implement IAcLogWriterClientBase.


LLM Maintenance: If you modify code in this folder, update this README to reflect the changes. If you notice the README content does not match the current code, automatically update the README to match the code.