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 日志记录。目前我们正在使用“旋转文件处理程序”将所有内容记录到文件中。这是在 jboss 'standalone.xml' 文件中定义的。我们也在考虑将一些信息记录到日志数据库中;为了建立指标等。
有人可以提供一些我们可以在这里使用的选项吗?我们的最终目标是在将内容写入文件时;我们会拦截并将其写入数据库。我们不想内联这样做,因为那将是一个阻塞调用。
这个链接确切地显示了如何设置我想要的。JBoss AS 7.0.1 具有支持自定义日志处理程序的功能。
http://community.jboss.org/wiki/CustomLogHandlersOn701