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

Respect dynamic logging level changes for LevelSwitch section #160

Merged
merged 5 commits into from Jan 7, 2019

Conversation

skomis-mm
Copy link
Contributor

@skomis-mm skomis-mm commented Jan 5, 2019

  • dynamic level changes notifications for LevelSwitch section
  • tests added
  • NRE fix for DummyConsoleSink
  • unused / unreachable related junk removed
  • sample updated

Fixes #99

@skomis-mm skomis-mm changed the title respect dynamic logging level changes for LevelSwitch declarations Respect dynamic logging level changes for LevelSwitch section Jan 5, 2019
Sergey Komisarchik added 2 commits January 5, 2019 04:50
- fine-tune ReloadDelay for the DynamicLevelChangeTests
@skomis-mm
Copy link
Contributor Author

skomis-mm commented Jan 5, 2019

Need some investigation why test on Travis / Linux fails. Probably should change file based notifications in the test to something more stable.

@skomis-mm
Copy link
Contributor Author

Ok, ready for review when someone have a time :)

Assert.Single(DummyConsoleSink.Emitted);
}

void UpdateConfig(LogEventLevel? minimumLevel = null, LogEventLevel? switchLevel = null, LogEventLevel? overrideLevel = null)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe that's personal taste, but I think turning the UpdateConfig Local Function into a proper method would make it clearer (and shorten the code in the test method)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, thanks.

Copy link
Member

@tsimbalar tsimbalar left a comment

Choose a reason for hiding this comment

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

Just a minor style comment, but, it looks good !

LGTM :shipit:

@skomis-mm skomis-mm merged commit 9f2fb30 into serilog:dev Jan 7, 2019
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.

Unreachable code in StringArgumentValue / review support for dynamic config changes
2 participants