13 implementations of ILogger
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
ExternalAccess\VSCode\API\VSCodeTelemetryLogger.cs (1)
14internal abstract class VSCodeTelemetryLogger : ILogger
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
TelemetryLogger.cs (1)
19internal abstract class TelemetryLogger : ILogger
Microsoft.CodeAnalysis.Workspaces (4)
Log\AggregateLogger.cs (1)
19internal sealed class AggregateLogger : ILogger
Log\EmptyLogger.cs (1)
14internal sealed class EmptyLogger : ILogger
Log\EtwLogger.cs (1)
17internal sealed class EtwLogger : ILogger
Log\TraceLogger.cs (1)
14internal sealed class TraceLogger : ILogger
Microsoft.VisualStudio.LanguageServices (4)
RoslynActivityLogger.cs (1)
52private class TraceSourceLogger : ILogger
Telemetry\CodeMarkerLogger.cs (1)
16internal sealed class CodeMarkerLogger : ILogger
Telemetry\FileLogger.cs (1)
23internal sealed class FileLogger : ILogger
Telemetry\TelemetryLogger.cs (1)
19internal abstract class TelemetryLogger : ILogger
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
InProcess\EditorVerifierInProcess.cs (1)
315private sealed class CodeActionLogger : ILogger
Roslyn.VisualStudio.DiagnosticsWindow (2)
Loggers\OutputWindowLogger.cs (1)
22internal sealed class OutputWindowLogger : ILogger
PerfMargin\PerfEventActivityLogger.cs (1)
14internal class PerfEventActivityLogger : ILogger
48 references to ILogger
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
ExternalAccess\VSCode\API\VSCodeTelemetryLogger.cs (5)
12/// Allows VSCode to implement a telemetry logger for <see cref="ILogger"/> events. 16bool ILogger.IsEnabled(FunctionId functionId) 21void ILogger.Log(FunctionId functionId, LogMessage logMessage) 26void ILogger.LogBlockStart(FunctionId functionId, LogMessage logMessage, int uniquePairId, CancellationToken cancellationToken) 31void ILogger.LogBlockEnd(FunctionId functionId, LogMessage logMessage, int uniquePairId, int delta, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
AbstractWorkspaceTelemetryService.cs (1)
22protected abstract ILogger CreateLogger(TelemetrySession telemetrySession, bool logDelta);
Services\ProcessTelemetry\RemoteProcessTelemetryService.cs (1)
101private static void SetRoslynLogger<T>(ImmutableArray<string> loggerTypes, Func<T> creator) where T : ILogger
Services\ProcessTelemetry\RemoteWorkspaceTelemetryService.cs (1)
24protected override ILogger CreateLogger(TelemetrySession telemetrySession, bool logDelta)
Microsoft.CodeAnalysis.Workspaces (33)
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\TraceLogger.cs (1)
12/// Implementation of <see cref="ILogger"/> that produce timing debug output.
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))
Logger.LogBlock.cs (2)
37private ILogger? _logger; 48public void Construct(ILogger logger, FunctionId functionId, LogMessage logMessage, int blockId, CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices (2)
Telemetry\AbstractWorkspaceTelemetryService.cs (1)
22protected abstract ILogger CreateLogger(TelemetrySession telemetrySession, bool logDelta);
Telemetry\VisualStudioWorkspaceTelemetryService.cs (1)
38protected override ILogger CreateLogger(TelemetrySession telemetrySession, bool logDelta)
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (3)
InProcess\EditorVerifierInProcess.cs (3)
310private static LoggerRestorer WithLogger(ILogger logger) 363private readonly ILogger? _logger; 365public LoggerRestorer(ILogger? logger)
Roslyn.VisualStudio.DiagnosticsWindow (2)
Loggers\OutputWindowLogger.cs (1)
20/// Implementation of <see cref="ILogger"/> that output to output window
OptionPages\PerformanceLoggersPage.cs (1)
97private static void SetRoslynLogger<T>(ImmutableArray<string> loggerTypeNames, Func<T> creator) where T : ILogger