配置io.sentry和io.sentry.logback在wildfly 24中
有什么方法可以为wildfly配置io.sentry和io.sentry.logback吗?因此,我的Javaee应用程序可以通过Wildfly登录到哨兵。
我尝试添加io.sentry和io.sentry.logback作为模块,但始终得到 引起的是:org.jboss.modules.modulenotfoundexception:io.sentry.logback
我添加了io.sentry-5.2.0.jar和io.sentry-logback-5.2.0.jar \ sentry \ main ... \ sentry-logback \带有module.xml的main文件夹,并尝试
<custom-handler name="SENTRY" module="io.sentry.logback" class="io.sentry.logback.SentryAppender">
<level name="WARN"/>
<formatter>
<pattern-formatter pattern="%d %-5p [%c] [%t] %s%E%n"/>
</formatter>
<properties>
<property name="dsn" value="https://[email protected]/38"/>
</properties>
</custom-handler>
在standalone.xml中
配置io.sentry和io.sentry.logback jar到模块/system/layers/layers/base/base/io/sentry (Sentry-Logback)/
with Main.xml。以下是XML的sentry.logback
<module name="io.sentry.logback" xmlns="urn:jboss:module:1.9">
<properties>
<property name="jboss.api" value="private"/>
</properties>
<resources>
<resource-root path="sentry-logback-5.2.0.jar"/>
</resources>
<dependencies>
<module name="io.sentry"/>
</dependencies>
</module>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎Wildfly正在使用Log4J,因此我切换到Sentry-Jul集成,此后运行良好。
Sentry Github
Seems wildfly is using Log4j so I switched to sentry-jul integration, and it works well after that.
Some guide on sentry github
https://github.com/getsentry/sentry-java/discussions/2129#discussioncomment-3031199