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

LogEventInfo.MessageFormatter - External Structured Logging Formatter #2244

Merged
merged 1 commit into from
Aug 13, 2017

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Aug 7, 2017

Add support for external Message Formatter. This will allow integration with external logger formatters like Microsoft.Extensions.Logging. See also NLog/NLog.Extensions.Logging#125

@snakefoot
Copy link
Contributor Author

snakefoot commented Aug 7, 2017

Can make extra PRs for CoreCLR and release-4.4.12. This will allow jump-start of structured-logging support for NLog.Extensions.Logging. Maybe combined with #2241

Will then update #2208 to work through the new official LogEventInfo.MessageFormatter, so structured logging support is also added for the internal NLog-MesageFormatter (instead of just string.Format)

@snakefoot snakefoot force-pushed the LogEventInfoMessageFormatter branch from 8368855 to e4f7138 Compare August 7, 2017 21:28
@codecov
Copy link

codecov bot commented Aug 7, 2017

Codecov Report

Merging #2244 into master will increase coverage by <1%.
The diff coverage is 70%.

@@           Coverage Diff           @@
##           master   #2244    +/-   ##
=======================================
+ Coverage      82%     82%   +<1%     
=======================================
  Files         304     304            
  Lines       21126   21137    +11     
  Branches     2531    2533     +2     
=======================================
+ Hits        17275   17287    +12     
+ Misses       3216    3211     -5     
- Partials      635     639     +4

@snakefoot snakefoot force-pushed the LogEventInfoMessageFormatter branch from 73d8dc7 to 4ff1b86 Compare August 8, 2017 17:57
@snakefoot
Copy link
Contributor Author

@304NotModified Removed some premature optimization regarding FormatProvider (Too many side-effects in attempt to save 8 byte)

@304NotModified
Copy link
Member

👍

@304NotModified 304NotModified modified the milestone: 4.5 Aug 13, 2017
@304NotModified 304NotModified added enhancement Improvement on existing feature feature labels Aug 13, 2017
@304NotModified 304NotModified merged commit 5c3c722 into NLog:master Aug 13, 2017
@304NotModified
Copy link
Member

Thanks! Merged!

@304NotModified 304NotModified modified the milestones: 4.5, 4.5 beta 1 Sep 30, 2017
@snakefoot snakefoot mentioned this pull request Nov 23, 2017
@snakefoot
Copy link
Contributor Author

Updated some documentation:

https://github.com/nlog/nlog/wiki/Message-Layout-Renderer

@304NotModified
Copy link
Member

Thanks!

@snakefoot snakefoot modified the milestones: 4.5 beta 1, 4.5 Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement on existing feature feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants