是否可以在 NLog 布局中包含回车和/或换行符。我希望在我的所有日志中保存以下格式的标题信息:
Application Name: <Application Name>
File Version: <Version number>
Released: <Release date>
User: <Windows User>
etc...
21|17:07:54|domain\user|Trace| System.OverflowException: Arithmetic operation
resulted in an overflow at application.form.Button1_Click(Object sender,
EventArgs e) in D:\Documents and
Settings\user\Mydocuments\workarea\application\application
project\application.vb:line 47
非常感谢所有帮助
问候
保罗·J。