'NLog feature question: can the stack depth be taken into account while writing logs?
I'm quite new at working with NLog., but I have earlier experience working with logfiles/trace files, but previously the logs looked as follows:
<timestamp> ... | main function logging
<timestamp> ... | sub function logging.1
<timestamp> ... | subsub function logging.1.1
<timestamp> ... | subsub function logging.1.2
<timestamp> ... | sub function logging.2
<timestamp> ... | subsub function logging.2.1
<timestamp> ... | subsubsub function logging.2.1.1
...
As you can see, the indenting was done, based on the depth within the callstack.
In NLog technology (NLog.xml file), I have seen a depth attribute, but I believe this is only meant for limiting the amount of logs, based on the callstack depth, I don't see any indentation configuration.
Does anybody know if NLog has that feature, where indentation is added, based on the callstack depth?
Thanks in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
