Rolf Kristensen
Rolf Kristensen
Have this exciting discussion about how to bend an old application to support structured logging: https://stackoverflow.com/questions/61281449/set-valueformatter-for-specific-nlog-instance There are some places where NLog could be more helpful for this scenario: -...
Maybe something like this, where it possible to do this: ```c# using var propertyCollector = ScopeContext.PushPropertyCollector(); ScopeContext.CollectProperty("parentproperty", "value"); ScopeContext.CollectProperty("sharedproperty", "value"); await ChildTaskAsync(); // Pushes properties to ScopeContext Logger.Info("Includes properties from...
And add SSL support for NetStandard1_0. For NLog 5.0
I'm guessing that most new application will go for Microsoft.Extensions.Logging as their ILogger-abstraction. This means that one only setup NLog during startup-configuration, so it can be combined with Microsoft.Extension.Logging with...
Nullable references makes use of method-attributes to signal if references should have been null-checked first before calling. ```xml 8.0 enable ``` The "funny" part is that LangVersion=8.0 is only fully...
When adding NLog to an empty Console Application with NetCore5 and enables AppTriming, then it grows from single file of 10 MByte to 20 MByte. Investigate what parts of NLog...
Random thoughts after looking at #4139. And the overhead from synchronizing cpu-caches to atomically increment a counter that very few people uses, and unexpectedly can become negative after some days....
Instead of silently accepting this when `ThrowConfigExceptions = true` - `${exception:format=string}` Then it should fail by deferring validation from Format-property-assignment to `InitializeLayoutRenderer()`. If Formats-property-collection is empty (because parsing failed), then...
The static method does not support dependency-injection or fluent-setup of LogFactory. Instead recommend to use `SimpleLayout.Render()`
Remove the following dependencies from NLog-core: ``` ``` Probably for NLog ver. 6.0 (Be careful not to step on the toes of NLog.MailKit - https://www.nuget.org/packages/NLog.MailKit/)