Nlog ${event-context:item=xxxx} not writing in logging database

后端 未结 3 2111
萌比男神i
萌比男神i 2021-01-24 05:11

I have a Nlog configuration that is basically this:

\">
  &         


        
3条回答
  •  情书的邮戳
    2021-01-24 05:33

    You have to fill in the LogEvent.Properties manually, or else all event-context items will render ''. These are not auto generated

    https://github.com/nlog/nlog/wiki/EventProperties-Layout-Renderer

    event-context has been changed to event-properties in the NLog documentation

提交回复
热议问题