Logging in multiple files using NLog

前端 未结 6 2027
长情又很酷
长情又很酷 2020-12-08 00:28

I am using NLog for logging purpose.

My code is as follows:



        
6条回答
  •  自闭症患者
    2020-12-08 01:06

    Please note that you could use layout renderers in the filename (even custom layout renderers) and so this will also make multiple files:

     
    

    In this example it's a log file for each loglevel (fatal, error, warn, info, debug, trace)

提交回复
热议问题