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

Fix #91 - wrong parameter name on surrogate WriteTo.Logger configuration method #92

Merged
merged 2 commits into from
Mar 15, 2018

Conversation

nblumhardt
Copy link
Member

Tactical fix for master, will need to come back onto dev.

@@ -380,8 +380,12 @@ internal static LoggerConfiguration FromLogContext(LoggerEnrichmentConfiguration
=> loggerEnrichmentConfiguration.FromLogContext();

// Unlike the other configuration methods, Logger is an instance method rather than an extension.
internal static LoggerConfiguration Logger(LoggerSinkConfiguration loggerSinkConfiguration, Action<LoggerConfiguration> configureLogger, LoggingLevelSwitch restrictedToMinimumLevel = null)
=> loggerSinkConfiguration.Logger(configureLogger, levelSwitch: restrictedToMinimumLevel);
Copy link
Member Author

Choose a reason for hiding this comment

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

levelSwitch: restrictedToMinimumLevel is the cause of the chaos.

Copy link
Member

@tsimbalar tsimbalar Mar 15, 2018

Choose a reason for hiding this comment

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

oh man :-/ sorry about this one . I'll try to take a look at this one tomorrow to exactly what I missed there... It's way too late here to do any proper thinking :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Easy to miss! (I did when reviewing it, anyway! :-))

@nblumhardt
Copy link
Member Author

Tested using the sample app locally; unless anyone's around for a quick sanity check, I'll push this through once CI passes.

@nblumhardt
Copy link
Member Author

Build is good; ignoring the build that only increments the package version.

@nblumhardt nblumhardt merged commit d503eec into serilog:master Mar 15, 2018
@merbla merbla mentioned this pull request Apr 5, 2018
@merbla merbla mentioned this pull request May 15, 2018
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.

2 participants