看到javaeye许多人都用 memcached,我就也跟风,
我用的是 com.danga.MemCached.MemCachedClient 类库,
使用时,它往日志文件里写入大量诸如此类信息,不堪其扰,
api 找不到日志开关 !!!!
怎么办呢
INFO (com.danga.MemCached.MemCachedClient:1349)- ++++ deserializing class tool.dao.BizObject
INFO (com.danga.MemCached.MemCachedClient:1349)- ++++ deserializing class tool.dao.BizObject
INFO (com.danga.MemCached.MemCachedClient:1349)- ++++ deserializing class tool.dao.BizObject
INFO (com.danga.MemCached.MemCachedClient:1349)- ++++ deserializing class tool.dao.BizObject
INFO (com.danga.MemCached.MemCachedClient:1349)- ++++ deserializing class tool.dao.BizObject
INFO (com.danga.MemCached.MemCachedClient:1349)- ++++ deserializing class tool.dao.BizObject
INFO (com.danga.MemCached.MemCachedClient:1349)- ++++ deserializing class tool.dao.BizObject
INFO (com.danga.MemCached.MemCachedClient:1349)- ++++ deserializing class tool.dao.BizObject
INFO (com.danga.MemCached.MemCachedClient:1349)- ++++ deserializing class tool.dao.BizObject
问题补充:
请不要回答诸如
设置 log4j.properties 之类的话,
我要具体的解决办法。
问题补充:
我的日志默认输出级别 就是 info ,屏蔽 info 那么我自己的日志也看不到了
解决办法:
在log4j.properties中加入以下输出规则即可。
log4j.logger.com.danga.MemCached.MemCachedClient=ERROR
或整个log4j.logger.com.danga.MemCached=ERROR