问题描述:

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.

相关阅读:
Top