damianh / LibLog

LibLog is a single file for you to either copy/paste or install via nuget, into your library/framework/application to provide a logging abstraction.
MIT License
929 stars 153 forks source link

support for structured logging when using NLog 4.5 or upper #239

Closed newbe36524 closed 5 years ago

newbe36524 commented 5 years ago

something same to #45 when using NLog 4.5 or upper it will be support to use structured logging native.

I will a do some work on this and submit a PR.

snakefoot commented 5 years ago

This is already supported in LibLog 5.0.3 (Be careful with using LibLog ver. 5.0.5 or newer until #233 has been merged).

newbe36524 commented 5 years ago

@snakefoot would probably use this version (Coming from #145 + #142) to support this feature :

https://github.com/snakefoot/LibLog/blob/1362d476238d405eba01f11bba28e6a4d858773c/src/LibLog/LibLog.cs (Choose "Raw" for copy-paste)

And just update your own copy of LibLog.cs.