arm-linux

http://armboard.taobao.com/

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  512 随笔 :: 0 文章 :: 48 评论 :: 115万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

07 2008 档案

摘要:使用Slf4j取代Apache Common-Logging编写日志Apache Common-Logging是广泛使用的Java日志门面库。我以前一直都使用它和log4j编写日志。Apache Common-Logging通过动态查找的机制,在程序运行时自动找出真正使用的日志库。Apache Common-Logging一直都运作得很好。直到最近,我写OSGI插件时,它不能工作了。原因是Apache Common-Logging使用了ClassLoader寻找和载入底层的日志库。而OSGI中,不同的插件使用自己的ClassLoader。一个线程的ClassLoader在执行不同的插件时,.. 阅读全文
posted @ 2008-07-02 18:33 arm-linux 阅读(294) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示