How do I switch from Log4Net to NLog in Quartz.Net?

后端 未结 3 795
日久生厌
日久生厌 2020-12-03 19:21

My company\'s standard logging tool is NLog. I\'m trying to introduce Quartz.net and was asked if it could use NLog instead of Log4Net.

I know I can recompile to us

3条回答
  •  没有蜡笔的小新
    2020-12-03 19:53

    Today I'm facing with the same issue. This article help me a lot, but thigs are changed a little bit...

    I use Quartz.Net 2.6.1.

    Common.Logging.NLog is deprecated and there is a new dll for each NLog version.

    So the new configs is:

    
       
          
             
    ...

    The namespace of NLogLoggerFactoryAdapter is not changed, but the dll name is changed.

    Be sure you have the same version of:

    • Common.Logging

    • Common.Logging.Core

    • Common.Logging.NLogXX

提交回复
热议问题