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

Dynamic level control should not fall back to Verbose when no server level is specified #41

Closed
nblumhardt opened this issue Nov 3, 2016 · 0 comments
Labels

Comments

@nblumhardt
Copy link
Member

var levelSwitch = new LoggingLevelSwitch(LogEventLevel.Warning);

var logger = new LoggerConfiguration()
    .MinimumLevel.ControlledBy(levelSwitch)
    .WriteTo.Seq(..., controlLevelSwitch: levelSwitch)
    .CreateLogger();

In this scenario, if the server does not have a minimum level set for the corresponding API key, the switch should not be adjusted.

If the server had, but then removes, the level set for the key, then the fallback level should be Warning, not Verbose as it is today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant