Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse LoggerMessage.Define for logs #82
Merged
Conversation
| @@ -83,7 +84,7 @@ private async Task ApplyAsync(ProxyConfigOptions config) | |||
| return; | |||
| } | |||
|
|
|||
| _logger.LogInformation("Applying proxy configs"); | |||
| _logger.LogInformation(EventIds.ApplyProxyConfig, "Applying proxy configs"); | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Kahbazi
Apr 24, 2020
Author
Contributor
I wanted to ask, should I use LoggerMessage.Define for log messages that don't have any parameters?
This comment has been minimized.
This comment has been minimized.
Tratcher
Apr 24, 2020
Member
I'm not sure what the official guidance is, but the inconsistency bothers me.
@rynowak you changed the logger define pattern last, no?
src/ReverseProxy.Core/Middleware/EndpointInitializerMiddleware.cs
Outdated
Show resolved
Hide resolved
src/ReverseProxy.Utilities/RecurrentActivities/RecurrentActivityManager.cs
Outdated
Show resolved
Hide resolved
|
Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Kahbazi commentedApr 23, 2020
•
edited
IOperationLoggerFixes #20
Fixes #66