Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用log4j-over-slf4j不能兼容的问题 #95

Open
hengyunabc opened this issue Oct 29, 2013 · 1 comment
Open

使用log4j-over-slf4j不能兼容的问题 #95

hengyunabc opened this issue Oct 29, 2013 · 1 comment

Comments

@hengyunabc
Copy link
Contributor

MonitorLog.java 的 static 块中显式用到了 log4j的不常用类:FileAppender、DailyRollingFileAppender

而 log4j.jar 作者后续的 log4j-over-self4j.jar,没有这两个类(NoClassDefFoundError),
只有 log4j 标准 API 用法的同名类 和 Appender/RollingFileAppender 等有限类。

感觉MetaStatLog实际没多大用处,这个是否可以直接去掉?
或者改为简单地写文件,不依赖具体的log的实现,或者改用slf4j?

@hadix-lin
Copy link

我司在切换日志框架的时候,也遇到这个问题,烦请解决一下.

我自己pull代码尝试打包,但是发现有些依赖是核心仓库上没有的,导致无法构建.
烦请作者发个新版解决这个问题.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants