-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
4397d63
commit 8cd23de
Showing
6 changed files
with
65 additions
and
25 deletions.
There are no files selected for viewing
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
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,16 @@ | ||
namespace Microsoft.Build.Logging.StructuredLogger | ||
{ | ||
/// <summary> | ||
/// Settings for the <see cref="BinaryLogReader"/>. | ||
/// </summary> | ||
public class ReaderSettings | ||
{ | ||
public static ReaderSettings Default { get; } = | ||
new() { UnknownDataBehavior = UnknownDataBehavior.Error }; | ||
|
||
/// <summary> | ||
/// Indication of how the unknown data in future versions of binlogs should be handled. | ||
/// </summary> | ||
public UnknownDataBehavior UnknownDataBehavior { 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,33 @@ | ||
namespace Microsoft.Build.Logging.StructuredLogger | ||
{ | ||
/// <summary> | ||
/// Indication of how the unknown data in future versions of binlogs should be handled. | ||
/// </summary> | ||
public enum UnknownDataBehavior | ||
{ | ||
/// <summary> | ||
/// When unknown data encountered - emit a single synthetic error message for the entire build. | ||
/// </summary> | ||
Error, | ||
|
||
/// <summary> | ||
/// When unknown data encountered - emit a single synthetic warning message for the entire build. | ||
/// </summary> | ||
Warning, | ||
|
||
/// <summary> | ||
/// When unknown data encountered - emit a single synthetic message for the entire build. | ||
/// </summary> | ||
Message, | ||
|
||
/// <summary> | ||
/// Ignore the unknown data and continue reading the rest of the build. | ||
/// </summary> | ||
Ignore, | ||
|
||
/// <summary> | ||
/// Throw an exception when unknown data is encountered. | ||
/// </summary> | ||
ThrowException | ||
} | ||
} |