开发者

Is it possible to disable traces printed to console in JBoss 5.1?

By default there are two appenders in JBoss5.1 - CONSOLE and FILE.

Do we need to use both of these appenders in production?

Is it possible to use FILE appender only?

I removed CONSOLE appender from web\conf\j开发者_如何学Cboss-log4j.xml but there are still a lot of traces in console.

Why?

I do not want traces in console in production.

Is it possible to turn CONSOLE appender off?


Maybe it's the output of the run.sh or run.bat, that doesn't use log4j.

Are you on windows or linux?

Do you see the output when you're booting or when you're deploying (or using) your application?


The CONSOLE appender is useful for development, particularly on Windows, where the appserver is run as a foreground console process. Also, Windows makes it rather hard to tail a log file like you can on *nix.

So no, you don't have to use the console appender. You can put whatever you like in the log4j file, the default is just the default. Remove appenders, or add them, however you see fit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜