-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ability to customize LogEventLevel used in UseSerilogRequestLogging middleware #132
Conversation
…eware FEATUREL add new dependency injection overloads to offer more flexibility while configuring options
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.
Thanks for the PR! Added a few comments. I'm offline for a few days in the middle of this week, so apologies if any replies are delayed.
FEATURE: use default empty overload in sample FEATURE: rename GetLogEventLevel to GetLogLevel
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.
Thanks! Looking good. Just a few minor notes/nitpicks.
…standards REFACTORING: renamed GetLogLevel to GetLevel
Hopefully this should be good now :) |
… is useful when an exception is thrown but HttpStatusCode is not yet set to 500 InternalServerError FIX: DefaultGetLevel now returns Error if there is an exception OR if StatusCode > 499
Hello, any plan to merge this soon? |
Done! Thanks. I think if I get a chance I'll investigate adding |
FEATURE: add ability to customize the LogEventLevel used by the middleware
FEATURE: add new dependency injection overload to offer more flexibility while configuring options