diff --git a/src/dotnetCampus.Logger.Analyzer/Assets/Templates/AggregateLoggerBridgeLinker.g.cs b/src/dotnetCampus.Logger.Analyzer/Assets/Templates/AggregateLoggerBridgeLinker.g.cs index a5d6d43..b554e85 100644 --- a/src/dotnetCampus.Logger.Analyzer/Assets/Templates/AggregateLoggerBridgeLinker.g.cs +++ b/src/dotnetCampus.Logger.Analyzer/Assets/Templates/AggregateLoggerBridgeLinker.g.cs @@ -19,6 +19,12 @@ partial class AggregateLoggerBridgeLinker : GILoggerBridgeLinker /// public static AggregateLoggerBridgeLinker Default { get; } = new(); + public bool IsEnabled(int logLevel) + { + var logger = _logger ?? GLog.Current; + return logger.IsEnabled((GLogLevel)logLevel); + } + private GILogger? _logger; ///