-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
389b673
commit b151926
Showing
8 changed files
with
1,345 additions
and
18 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Microsoft.Build.Framework; | ||
using Microsoft.Build.Logging.StructuredLogger; | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.IO.Compression; | ||
using System.Text; | ||
|
||
namespace PauloMorgado.DotnetMSBuildLog.Binlog | ||
{ | ||
/// <summary> | ||
/// A bitmask to specify which fields on a BuildEventArgs object are present; used in serialization | ||
/// </summary> | ||
[Flags] | ||
internal enum BuildEventArgsFieldFlags | ||
{ | ||
None = 0, | ||
BuildEventContext = 1 << 0, | ||
HelpHeyword = 1 << 1, | ||
Message = 1 << 2, | ||
SenderName = 1 << 3, | ||
ThreadId = 1 << 4, | ||
Timestamp = 1 << 5, | ||
Subcategory = 1 << 6, | ||
Code = 1 << 7, | ||
File = 1 << 8, | ||
ProjectFile = 1 << 9, | ||
LineNumber = 1 << 10, | ||
ColumnNumber = 1 << 11, | ||
EndLineNumber = 1 << 12, | ||
EndColumnNumber = 1 << 13 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using Microsoft.Build.Framework; | ||
using Microsoft.Build.Logging.StructuredLogger; | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.IO.Compression; | ||
using System.Text; | ||
|
||
namespace PauloMorgado.DotnetMSBuildLog.Binlog | ||
{ | ||
/// <summary> | ||
/// Represents a collective set of common properties on BuildEventArgs. Used for deserialization. | ||
/// </summary> | ||
internal class BuildEventArgsFields | ||
{ | ||
public BuildEventArgsFieldFlags Flags { get; set; } | ||
|
||
public string? Message { get; set; } | ||
public BuildEventContext? BuildEventContext { get; set; } | ||
public int ThreadId { get; set; } | ||
public string? HelpKeyword { get; set; } | ||
public string? SenderName { get; set; } | ||
public DateTime Timestamp { get; set; } | ||
|
||
public string? Subcategory { get; set; } | ||
public string? Code { get; set; } | ||
public string? File { get; set; } | ||
public string? ProjectFile { get; set; } | ||
public int LineNumber { get; set; } | ||
public int ColumnNumber { get; set; } | ||
public int EndLineNumber { get; set; } | ||
public int EndColumnNumber { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace PauloMorgado.DotnetMSBuildLog.Converters | ||
{ | ||
internal enum MSBuildLogFileFormat | ||
{ | ||
MSBuildBinaryLog, | ||
Speedscope, | ||
Chromium, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.