using GFramework.Core.Abstractions.logging; namespace GFramework.Core.logging; /// /// 空操作日志记录器实现,不执行任何实际的日志记录操作 /// /// 日志记录器名称,默认为null /// 最小日志级别,默认为Info internal sealed class NoopLogger( string? name = null, LogLevel minLevel = LogLevel.Info) : AbstractLogger(name ?? ILogger.RootLoggerName, minLevel) { /// /// 重写写入方法,空操作实现,不执行任何实际的日志记录操作 /// /// 日志级别 /// 日志消息 /// 异常信息 protected override void Write(LogLevel level, string message, Exception? exception) { } }