namespace GFramework.Core.Abstractions.Logging; /// /// 支持结构化日志的日志记录器接口 /// public interface IStructuredLogger : ILogger { /// /// 使用指定的日志级别记录消息和结构化属性 /// /// 日志级别 /// 日志消息 /// 结构化属性键值对 void Log(LogLevel level, string message, params (string Key, object? Value)[] properties); /// /// 使用指定的日志级别记录消息、异常和结构化属性 /// /// 日志级别 /// 日志消息 /// 异常对象 /// 结构化属性键值对 void Log(LogLevel level, string message, Exception? exception, params (string Key, object? Value)[] properties); }