log4net:如何在数据库中存储数据

发布于 2024-10-04 15:47:52 字数 190 浏览 1 评论 0原文

我计划用唯一的一种日志机制替换几种不同的日志机制。此外,我想将数据存储在数据库中而不是文件中。

为此,我计划选择 log4net。但是查看文档,我没有找到将其配置为使用数据库作为日志存储的方法。

我是不是错过了什么?如果有一种方法可以使用 log4net 将数据存储在数据库中,请您指出我。以及如何做到这一点?

多谢!

I am planning to replace few different logging mechanism with the only 1. Also I would like to store data not in file, but in DB.

For this purpose I am planning to choose log4net. But looking on the documentation I don't see a way to configure it to use DB as logs storage.

Am I missed something? Could you please point me if there is a way to store data in DB using log4net. And how to do that?

Thanks a lot!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我做我的改变 2024-10-11 15:47:52

检查此处。它将为您提供如何为您正在访问的数据库设置配置的示例。

Check here. It will give you examples of how to set up your config for the database you are accessing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文