示例:方法A调用方法B,B调用C,所有方法都将消息写入日志。是否可以像这样通过NLog自动缩进邮件?
String in method A before B is called
First string in method B
Second string in method B and call C
First string in method C
Second string in method C
Third string in method B after C is called
String in method A after B is called
也许有一些API可以指定当前的缩进级别,所以所有随后的日志输出都将使用此级别?