Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在写入一个日志文件,但我想在我的数据库中登录一个名为“Log”的表。
我怎样才能做到这一点?
log4net 有一个AdoNetAppender和一个示例配置。
查看 logging.apache.org 以获取适合您使用的语言的 log4X。我知道他们有 log4j (Java) 和 log4net (C#/.Net)。他们还提供了有关如何配置日志记录框架以记录到数据库表而不是文件的示例。