当前位置: 动力学知识库 > 问答 > 编程问答 >

log4j conflicts with netty

问题描述:

Just installed log4j and got it working pretty well, but I noticed because netty also uses log4j, im getting all the log messages from netty too. Is there any way I can configure log4j to ignore netty?

also as a side note if theres any way I can configure log4j so I don't have to type

static Logger log = Logger.getLogger(Yourclass.class);

in every class that be great to know too

网友答案:

You can change the log level for io.netty to WARN or ERROR. If you are not familiar with log4j configuration, please read this and this.

分享给朋友:
您可能感兴趣的文章:
随机阅读: