sharpemu icon indicating copy to clipboard operation
sharpemu copied to clipboard

[logging] Migrate HLE diagnostics to SharpEmuLog

Open Digote opened this issue 4 months ago • 0 comments

Summary

  • Route ModuleManager dispatch diagnostics through the HLE logger.
  • Route Aerolib resource loading status and failures through the Aerolib logger.
  • Preserve appropriate warning, info, and error levels.
  • Include the original exception when Aerolib loading fails.
  • Update project references and lockfiles for the internal logging dependency.

Why

These diagnostics were written directly to stderr, bypassing the configured SharpEmu log sinks and file logging. This migration makes HLE and Aerolib messages consistent with the rest of the structured logging infrastructure.

Validation

  • dotnet restore SharpEmu.slnx --locked-mode
  • dotnet build SharpEmu.slnx -c Release --no-restore
    • 0 warnings
    • 0 errors
  • dotnet publish src/SharpEmu.CLI/SharpEmu.CLI.csproj -c Release -r win-x64 --self-contained true --no-restore
  • reuse lint

Digote avatar Jul 12 '26 13:07 Digote