How to get NLog to write to database

前端 未结 2 510
慢半拍i
慢半拍i 2021-01-29 23:58

I\'m trying to get NLog to log to my database log table but to no avail. I\'m sure my connection string is correct because it\'s the same used elsewhere in my web.config. Writ

相关标签:
2条回答
  • 2021-01-30 00:12

    Try putting the following in your nlog tag:

    <nlog throwExceptions="true" internalLogFile="c:\nlog.txt" internalLogLevel="Debug" />
    

    That might help determine what the problem is

    0 讨论(0)
  • 2021-01-30 00:22

    NLog allows for logging the internals of the framework itself.

    Enable "debug level for your internal logging" for NLog and see what's going wrong.

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