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.
我正在使用 Jboss AS7 并执行了文件中的日志。现在我想使用 logback 从文件迁移到数据库。如何为 logback 配置standalone.xml?
提前致谢..!
没有特定的记录器实现支持开箱即用地记录到数据库。您需要的是自定义日志处理程序。
这里 有一个自定义日志处理程序实现供参考https://community.jboss.org/wiki/CustomLogHandlersOn701
希望这有帮助!