-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Temporarily fix VB App Framework Logging. #7590
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
14 commits
Select commit
Hold shift + click to select a range
6f722cf
Draft
dreddy-work 1af2b94
Draft chnages for risk assesment.
dreddy-work 4b07447
Introduce runtime-config settigns for opt-in or opt-out of a breaking…
dreddy-work b296123
Merge branch 'main' into dev/dreddy/fix7251
dreddy-work 8117534
Address review feedback.
dreddy-work 96bfd93
Adress further feedback
dreddy-work d0746ba
Fix test and address review comments.
dreddy-work 22ce594
Test skip that was accidentally removed.
dreddy-work 6651e56
Merge branch 'main' into FixVbLogging
KlausLoeffelmann 3931bea
Patch Microsoft.VisualBasic.Logging.Log to unblock failing tests.
KlausLoeffelmann 7dfca3d
Copy LocalAppContextSwitches functionality to Microsoft.VisualBasic.F…
KlausLoeffelmann 68af597
Revert quirking, disable config file logging for My.Logging.Log.
KlausLoeffelmann b6f08db
Reset file.
KlausLoeffelmann bc0a179
Remove redundant Imports statement.
KlausLoeffelmann 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -163,20 +163,12 @@ Namespace Microsoft.VisualBasic.Logging | |
| If _listenerAttributes Is Nothing Then | ||
| _listenerAttributes = Attributes | ||
| End If | ||
| Return _hasBeenInitializedFromConfigFile | ||
|
|
||
| ' TODO: This is a tempory fix, which will break configuring logging via file for the time being. See: https://github.com/dotnet/winforms/pull/7590 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you open a follow up bug to get this fixed? |
||
| Return False | ||
| End Get | ||
| End Property | ||
|
|
||
| ''' <summary> | ||
| ''' Overriding this function is the trick that tells us whether this trace source was configured | ||
| ''' from a config file or not. It only gets called if a config file was found. | ||
| ''' </summary> | ||
| Protected Overrides Function GetSupportedAttributes() As String() | ||
| _hasBeenInitializedFromConfigFile = True | ||
| Return MyBase.GetSupportedAttributes() | ||
| End Function | ||
|
|
||
| Private _hasBeenInitializedFromConfigFile As Boolean 'True if we this TraceSource is initialized from a config file. False if somebody just news one up. | ||
| Private _listenerAttributes As StringDictionary | ||
|
|
||
| End Class | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would had returned
falsehere for the RC and would have worked on the proper fix, i.e. how to get if this was initialized from the config file.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this first. But then I thought, there is a good chance it will stay like this, and then we could have it right away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe runtime can add a protected property for us to look up?