Skip to content

Replace log messages using string.Format style with structured log style#1163

Merged
andrewlock merged 1 commit into
masterfrom
andrew/log-message-style
Jan 27, 2021
Merged

Replace log messages using string.Format style with structured log style#1163
andrewlock merged 1 commit into
masterfrom
andrew/log-message-style

Conversation

@andrewlock

Copy link
Copy Markdown
Member

Initial cleanup of log levels before implementing remainder of the logging RFC

Replaces string.Format() style log templates ("{0},{1}") with named arguments ("{Name},{Value}"). Doesn't make much difference atm, as we're only writing to file, but is better practice, and will be better if we do structured logging down the line instead.

Extracted from #1150 as there concerns around following the RFC in that PR, and this change is independent

@DataDog/apm-dotnet

@andrewlock
andrewlock requested a review from a team as a code owner January 25, 2021 11:49
@andrewlock

Copy link
Copy Markdown
Member Author

Integration tests failing due to out of drive space, and all safe changes, so merging

@andrewlock
andrewlock merged commit 4724c76 into master Jan 27, 2021
@andrewlock
andrewlock deleted the andrew/log-message-style branch January 27, 2021 15:46
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.

3 participants