How do I configure NLog to write to a database?

前端 未结 4 1310
走了就别回头了
走了就别回头了 2020-12-24 12:21

I\'m trying to get NLog to write to a database, however with my current code it throws an exception when I attempt to debug, the exception is: The type initializer for \'Not

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-24 13:20

    U also wrote 2 targets. And also a lot of attributes that u don't need to set. Should just be:

    
      
    

    Something like this. Easy no? :)

提交回复
热议问题