-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Adding a static factory for the TerminalLogger #11318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a8e7cc0
Adds a static factory that can create a TerminalLogger or ConsoleLogg…
MichalPavlik f0cbec2
Disable TL progress ctrl codes when verbosity is 'quiet'
MichalPavlik 1685284
Added --tl:<val> arg support
MichalPavlik db35e8a
Removing debugging code
MichalPavlik d38dd70
Merge branch 'main' into dev/mipavlik/tl-static-factory
MichalPavlik 8dbfeb8
Merge branch 'main' into dev/mipavlik/tl-static-factory
MichalPavlik d040fd9
Fixed failing tests
MichalPavlik 94a1378
The factory method is now public
MichalPavlik 01607a8
Unnecessary usings were removed
MichalPavlik 9eb5464
Moving the TerminalLogger back due to issues with shared sources. Add…
MichalPavlik d2dbfce
Updated parameter doc
MichalPavlik 2defbfe
Addded support for more args prefixes and returned --tl:on option
MichalPavlik eb0ead3
Moving Terminal Logger once again, but making it public now. All ctor…
MichalPavlik 8dbee80
Fixed tests
MichalPavlik 6d014a6
Merge branch 'main' into dev/mipavlik/tl-static-factory
MichalPavlik 74a4d23
Updated XLFs
MichalPavlik 018d490
Fixed TL activation
MichalPavlik ab08182
Changing namespace to align with other public loggers. Some types wer…
MichalPavlik 3ac2ee0
Added verbosity parsing capability
MichalPavlik 74cf0c3
Merge branch 'main' into dev/mipavlik/tl-static-factory
MichalPavlik f7cbe77
Factory now recognizes the "false" value
MichalPavlik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
src/MSBuild.UnitTests/MockStopwatch.cs → src/Build.UnitTests/MockStopwatch.cs
This file contains hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
...osity_FailedWithErrors.Linux.verified.txt → ...rbosity_FailedWithErrors.OSX.verified.txt
This file contains hidden or 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
]9;4;3;\directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: Warning! | ||
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: Warning! | ||
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: | ||
A | ||
Multi | ||
Line | ||
Warning! | ||
directory/[1mfile[m(1,2,3,4): [31;1merror[m [31;1mAA0000[m: Error! | ||
]9;4;0;\ |
3 changes: 1 addition & 2 deletions
3
...ity_FailedWithErrors.Windows.verified.txt → ...ity_FailedWithErrors.Windows.verified.txt
This file contains hidden or 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
]9;4;3;\directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: Warning! | ||
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: Warning! | ||
directory/[1mfile[m(1,2,3,4): [33;1mwarning[m [33;1mAA0000[m: | ||
A | ||
Multi | ||
Line | ||
Warning! | ||
directory/[1mfile[m(1,2,3,4): [31;1merror[m [31;1mAA0000[m: Error! | ||
]9;4;0;\ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
.../Snapshots/TerminalLogger_Tests.PrintTestSummaryQuietVerbosity_Succeeded.OSX.verified.txt
This file contains hidden or 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 @@ | ||
emptyString |
1 change: 1 addition & 0 deletions
1
...pshots/TerminalLogger_Tests.PrintTestSummaryQuietVerbosity_Succeeded.Windows.verified.txt
This file contains hidden or 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 @@ | ||
emptyString |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
src/MSBuild.UnitTests/TickingStopwatch.cs → src/Build.UnitTests/TickingStopwatch.cs
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
...ld/TerminalLogger/StopwatchAbstraction.cs → ...ng/TerminalLogger/StopwatchAbstraction.cs
This file contains hidden or 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 hidden or 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 hidden or 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
4 changes: 2 additions & 2 deletions
4
src/MSBuild/TerminalLogger/BuildMessage.cs → ...ng/TerminalLogger/TerminalBuildMessage.cs
This file contains hidden or 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
namespace Microsoft.Build.Logging.TerminalLogger; | ||
namespace Microsoft.Build.Logging; | ||
|
||
/// <summary> | ||
/// Represents a piece of diagnostic output (message/warning/error). | ||
/// </summary> | ||
internal record struct BuildMessage(MessageSeverity Severity, string Message) | ||
internal record struct TerminalBuildMessage(TerminalMessageSeverity Severity, string Message) | ||
{ } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.