9 instantiations of BinaryLogger
dotnet-aot (2)
parent\dotnet\LoggerUtility.cs (2)
35
binaryLoggers.Add(new
BinaryLogger
{ Parameters = filename });
41
binaryLoggers.Add(new
BinaryLogger
{ Parameters = filename });
dotnet-format (1)
Workspaces\MSBuildWorkspaceLoader.cs (1)
43
binlog = new Build.Logging.
BinaryLogger
()
Microsoft.Build (1)
BackEnd\BuildManager\BuildManager.cs (1)
881
var logger = new
BinaryLogger
{ Parameters = binlogPath };
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
AbstractBuildHost.cs (1)
97
logger = new
BinaryLogger
{ Parameters = _binaryLogPath };
Microsoft.DotNet.HotReload.Watch (1)
Build\BuildReporter.cs (1)
41
?
new
()
MSBuild (2)
XMake.cs (2)
4094
BinaryLogger logger =
new
() { Parameters = processedParams.DistinctParameterSets[0], AdditionalFilePaths = processedParams.AdditionalFilePaths };
4102
BinaryLogger logger = new
BinaryLogger
{ Parameters = paramSet };
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1277
loggers.Add(new
BinaryLogger
47 references to BinaryLogger
dotnet-aot (6)
parent\dotnet\LoggerUtility.cs (6)
15
List<
BinaryLogger
> binaryLoggers = [];
60
public static FacadeLogger CreateFacadeLogger(List<
BinaryLogger
> binaryLoggers)
206
private readonly List<
BinaryLogger
> innerLoggers;
208
public PersistentDispatcher(List<
BinaryLogger
> innerLoggers)
211
foreach (
var
logger in innerLoggers)
225
foreach (
var
innerLogger in innerLoggers)
dotnet-watch (1)
CommandLine\CommandLineOptions.cs (1)
192
return value != null ?
BinaryLogger
.ParseParameters(value).LogFilePath ?? "msbuild.binlog" : null;
Microsoft.Build (19)
BackEnd\BuildManager\BuildManager.cs (1)
881
var
logger = new BinaryLogger { Parameters = binlogPath };
Logging\BinaryLogger\BinaryLogger.cs (2)
31
public
BinaryLogger
.ProjectImportsCollectionMode ProjectImportsCollectionMode { get; internal set; } =
BinaryLogger
.ProjectImportsCollectionMode.Embed;
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (8)
195
int minimumReaderVersion = fileFormatVersion >=
BinaryLogger
.ForwardCompatibilityMinimalVersion
201
if (fileFormatVersion >
BinaryLogger
.FileFormatVersion &&
202
(!allowForwardCompatibility || minimumReaderVersion >
BinaryLogger
.FileFormatVersion))
204
var text = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("UnsupportedLogFileFormat", fileFormatVersion, minimumReaderVersion,
BinaryLogger
.FileFormatVersion);
289
_formatVersionMismatchWarning = reader.FileFormatVersion >
BinaryLogger
.FileFormatVersion
290
? ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BinlogFormatVersionMismatch", reader.FileFormatVersion,
BinaryLogger
.FileFormatVersion)
292
bool supportsForwardCompatibility = reader.FileFormatVersion >=
BinaryLogger
.ForwardCompatibilityMinimalVersion;
323
&& reader.FileFormatVersion >
BinaryLogger
.FileFormatVersion;
Logging\BinaryLogger\BuildEventArgsReader.cs (7)
127
if (_fileFormatVersion <
BinaryLogger
.ForwardCompatibilityMinimalVersion)
154
internal int MinimumReaderVersion { get; set; } =
BinaryLogger
.ForwardCompatibilityMinimalVersion;
267
if (_fileFormatVersion >=
BinaryLogger
.ForwardCompatibilityMinimalVersion)
283
if (_fileFormatVersion <
BinaryLogger
.ForwardCompatibilityMinimalVersion ||
615
if (_fileFormatVersion >=
BinaryLogger
.ForwardCompatibilityMinimalVersion)
979
if (_fileFormatVersion >=
BinaryLogger
.ForwardCompatibilityMinimalVersion ||
1035
if (_fileFormatVersion >=
BinaryLogger
.ForwardCompatibilityMinimalVersion ||
Logging\IFileOutputLogger.cs (1)
9
/// (for example <see cref="FileLogger"/> and <see cref="
BinaryLogger
"/>).
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
AbstractBuildHost.cs (1)
93
BinaryLogger
? logger = null;
Microsoft.DotNet.HotReload.Watch (1)
Build\BuildReporter.cs (1)
40
private readonly
BinaryLogger
? _binaryLogger = binLogPath != null
MSBuild (19)
FilteredBinlogReplay.cs (14)
26
private static readonly Action<
BinaryLogger
, IEventSource, Stream, BinaryLoggerParameters, string> s_initializeBinaryLogger =
27
(Action<
BinaryLogger
, IEventSource, Stream, BinaryLoggerParameters, string>)typeof(
BinaryLogger
)
28
.GetMethod(nameof(
BinaryLogger
.Initialize), BindingFlags.Instance | BindingFlags.NonPublic, binder: null,
30
.CreateDelegate(typeof(Action<
BinaryLogger
, IEventSource, Stream, BinaryLoggerParameters, string>));
52
var processed =
BinaryLogger
.ProcessParameters(switches[CommandLineSwitches.ParameterizedSwitch.BinaryLogger]);
55
if (
BinaryLogger
.ParseParameters(parameter).ExcludedEventKinds.Count != 0)
68
var processed =
BinaryLogger
.ProcessParameters(switches[CommandLineSwitches.ParameterizedSwitch.BinaryLogger]);
79
var parameters =
BinaryLogger
.ParseParameters(parameter);
81
parameters.ProjectImportsCollectionMode !=
BinaryLogger
.ProjectImportsCollectionMode.ZipFile,
88
outputPath = Path.GetFullPath(parameters.LogFilePath ??
BinaryLogger
.ExtractFilePathFromParameters(parameter));
161
Dictionary<
BinaryLogger
, Output> outputs = [];
171
if (logger is
BinaryLogger
binaryLogger)
186
if (logger is
BinaryLogger
binaryLogger)
XMake.cs (5)
41
using BinaryLogger = Microsoft.Build.Logging.
BinaryLogger
;
2823
var isLoggerThatRequiresTaskInputsConfigured = loggers.Any(l => l is TerminalLogger || l is
BinaryLogger
);
4078
var processedParams =
BinaryLogger
.ProcessParameters(binaryLoggerParameters);
4094
BinaryLogger
logger = new() { Parameters = processedParams.DistinctParameterSets[0], AdditionalFilePaths = processedParams.AdditionalFilePaths };
4102
BinaryLogger
logger = new BinaryLogger { Parameters = paramSet };