外观
在组合根配置 Microsoft.Extensions.Logging,由服务通过构造函数接收 ILogger<T>。使用结构化参数保留事件字段,例如 logger.LogInformation("Player matched: {PlayerId}", playerId)。
Microsoft.Extensions.Logging
ILogger<T>
logger.LogInformation("Player matched: {PlayerId}", playerId)
MinimalApp 展示控制台日志和实例级 Architecture 日志。引擎输出见Godot 日志。