Name and log name options using NLog

How to register a call method with its incoming parameters using NLog? If this is not possible, can I pass some parameters to the log so that they appear in the last log message?

+4
source share
1 answer

One way to solve this problem is to create a custom wrapper under the NLog log class, which will take additional parameters, such as className and methodName. After that, create a message yourself. You can also use this:

0
source

Source: https://habr.com/ru/post/1435039/


All Articles