log4net 与 SQLite 错误 - 在应用程序关闭之前不将日志保存到数据库
应用程序在 SQLite 数据库中使用 log4net 创建日志。 此处描述了使用的架构 错误是,在应用程序关闭之前,数据不会保存到数据库。 在应用程序执行期间 - 数据库不包含新数据。
有什么想法吗?
Aplication creates logs using log4net in a SQLite db. Used schema is described here
Bug is that the data aren't saved to db until aplication is closed.
Durring app execution - db contain no new data.
Any ideeas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您描述的问题可能与附加程序缓冲消息有关。尝试将 缓冲区 设置为 1。
The problem you describe could be related to the fact that the appender buffers messages. Try setting the buffer to 1.
将此行添加到您的附加程序中:
add this line to your appender: