Getting Logger Name into Excel file with NLog

前端 未结 1 1071
旧时难觅i
旧时难觅i 2021-01-25 19:57

Thanks to Rolf\'s comment in this question: NLog in C# with severity AND categories

I am able to record to a text file the category of log message (such as \"Thermal\" o

1条回答
  •  一整个雨季
    2021-01-25 20:11

    What is the field in GetLogger called?

    You're looking for ${logger} - see ${logger} docs

    More generally, how do I know all the options I can put in the CSV layout?

    You could use all layout renderers, see the list with all layout renderers

    For options for the CSV formating, see CsvLayout docs

    0 讨论(0)
提交回复
热议问题