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