log4net to SQLServer : what happens if database is unavailable?

前端 未结 3 1572
挽巷
挽巷 2020-12-10 06:13

I have a log4net ado appender writing to a SQL Server database. I like it, I think it\'s neat. Before I send it into production, I want to know what the behaviour will be if

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-10 06:43

    using reconnectonerror will surely enable you to start logging again once the DB server is available, but the intermediate log messages, while the server was down, will be lost. I think log4Net doesn't have any provision to persist the messages util the DB server is available.

提交回复
热议问题