Skip to content
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

Add a callback on the reader options to expose the log level switches #352

Merged
merged 1 commit into from
Mar 11, 2023

Conversation

0xced
Copy link
Member

@0xced 0xced commented Mar 10, 2023

Fixes #206

@SimonCropp
Copy link
Contributor

@0xced fyi i took the liberty of resolving a conflict

Copy link
Member

@nblumhardt nblumhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Added some minor comments :-)

@0xced 0xced force-pushed the LogLevelSwitches branch from 2321e72 to e487e42 Compare March 10, 2023 23:55

Verified

This commit was signed with the committer’s verified signature. The key has expired.
antonpirker Anton Pirker
Fixes serilog#206
@0xced 0xced force-pushed the LogLevelSwitches branch from e487e42 to b483da5 Compare March 11, 2023 00:02
@nblumhardt nblumhardt merged commit 93c820f into serilog:dev Mar 11, 2023
@0xced 0xced deleted the LogLevelSwitches branch March 11, 2023 00:24
}

public void AddFilterSwitch(string filterSwitchName, LoggingFilterSwitchProxy filterSwitch)
public string AddFilterSwitch(string filterSwitchName, LoggingFilterSwitchProxy filterSwitch)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The result of this method is not used. Is it specially done?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was done in anticipation of #366 where the result is now used.

0xced added a commit to 0xced/serilog-settings-configuration that referenced this pull request Mar 15, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
antonpirker Anton Pirker
Just like it was done for log level switches in serilog#352.
0xced added a commit to 0xced/serilog-settings-configuration that referenced this pull request May 5, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
antonpirker Anton Pirker
Just like it was done for log level switches in serilog#352.
0xced added a commit to 0xced/serilog-settings-configuration that referenced this pull request May 5, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
antonpirker Anton Pirker
Just like it was done for log level switches in serilog#352.
@nblumhardt nblumhardt mentioned this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to configure from JSON, but then get a reference to the switch?
4 participants