在哪里查看 SLF4J Simple?
我正在尝试从受信任的存储库(最好是 SLF4J 的官方存储库)中查看 slf4j-simple-1.6.2
并将其拉入 Eclipse 项目。我这样做是因为我需要调整 SLF4J Simple 的代码,以便它绑定到我自己的日志记录实现。
我希望有一种方法可以在不使用 Maven 的情况下完成此任务,因为我以前从未使用过 Maven,而且运行 Ant 构建感觉更舒服。
尽管如此,我已经彻底搜索了 SLF4J 的网站,但找不到任何指向其存储库的可信链接。
即使我将项目导入到 Eclipse 中,我仍然需要弄清楚如何使用 Ant 构建它。
有人可以帮我吗:
- 查找存储库
- 确认 Ant 构建是否可行
提前致谢!
I'm trying to check out slf4j-simple-1.6.2
from a trusted repository (preferably, SLF4J's official repo) and pull it down into an Eclipse project. I'm doing this because I need to tweak SLF4J Simple's code so that it binds to my own logging implementation.
I'm hoping there is a way to do this without having to use Maven, because I've never used Maven before and feel much more comfortable running Ant builds.
Nevertheless, I've searched SLF4J's site high and low and cannot find any trusted links to their repository.
Even once I get the project imported into Eclipse, I still need to figure out how to get it building with Ant.
Could someone please help me:
- Find the repo
- Confirm whether an Ant build is possible
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
此处的 zip 下载也包含源代码。
The zip download here also contains the sources.
官方源代码存储库托管在 GitHub 上。但是,我相信您的做法是错误的。
SLF4J 的想法是依赖于 slf4j-api 并让开发人员仅添加一个绑定。无需调整原始绑定,只需编写您自己的绑定即可。当然,您可以使用简单的绑定作为起点,但是修改现有的开源库和维护修补版本是一项繁重的工作。
The official source code repository is hosted on GitHub. However, I believe you are doing it the wrong way.
The idea of SLF4J is to have a dependency on
slf4j-api
and let the developer to add exactly one binding. Instead of tweaking original bindings just write your own one. Of course you can usesimple
binding a starting point, but modifying existing open source libraries and maintaining patched versions is a lot of work.正如您所说,slf4j 出现在官方 Maven 存储库中。
因此,基本上,您有 2 个简单的解决方案,无需使用 Maven:
As you said, slf4j is present in the official Maven repository.
So basically, you have 2 simple solutions without using Maven: