2 implementations of ILogger
Microsoft.CodeAnalysis.Workspaces (2)
Log\AggregateLogger.cs (1)
19internal sealed class AggregateLogger : ILogger
Log\EmptyLogger.cs (1)
14internal sealed class EmptyLogger : ILogger
37 references to ILogger
Microsoft.CodeAnalysis.LanguageServer (1)
Logging\RoslynLogger.cs (1)
47var currentLogger = Logger.GetLogger();
Microsoft.CodeAnalysis.Workspaces (35)
Log\AggregateLogger.cs (17)
21private readonly ImmutableArray<ILogger> _loggers; 23public static AggregateLogger Create(params ILogger[] loggers) 25var set = new HashSet<ILogger>(); 28foreach (var logger in loggers.WhereNotNull()) 42public static ILogger AddOrReplace(ILogger newLogger, ILogger oldLogger, Func<ILogger, bool> predicate) 68var set = new HashSet<ILogger>(); 69foreach (var logger in aggregateLogger._loggers) 87public static ILogger Remove(ILogger logger, Func<ILogger, bool> predicate) 111private AggregateLogger(ImmutableArray<ILogger> loggers) 121var logger = _loggers[i]; 135var logger = _loggers[i]; 149var logger = _loggers[i];
Log\EtwLogger.cs (1)
16internal sealed class EtwLogger(Func<FunctionId, bool> isEnabledPredicate) : ILogger
Log\TraceLogger.cs (2)
12/// Implementation of <see cref="ILogger"/> that produce timing debug output. 14internal sealed class TraceLogger(Func<FunctionId, bool>? isEnabledPredicate) : ILogger
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (13)
21private static ILogger? s_currentLogger; 31public static ILogger? SetLogger(ILogger? logger) 40public static ILogger? GetLogger() 43private static bool TryGetActiveLogger(FunctionId functionId, [NotNullWhen(true)] out ILogger? activeLogger) 45var logger = s_currentLogger; 61if (TryGetActiveLogger(functionId, out var logger)) 73if (TryGetActiveLogger(functionId, out var logger)) 88if (TryGetActiveLogger(functionId, out var logger)) 102if (TryGetActiveLogger(functionId, out var logger)) 116if (TryGetActiveLogger(functionId, out var logger)) 130if (TryGetActiveLogger(functionId, out var logger)) 143if (TryGetActiveLogger(functionId, out var logger))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (2)
36private ILogger? _logger; 44public void Construct(ILogger logger, FunctionId functionId, LogMessage logMessage, int blockId, CancellationToken cancellationToken)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Loggers\OutputWindowLogger.cs (1)
19/// Implementation of <see cref="ILogger"/> that output to output window