0

java.util.logging日志配置中,我想专门为某些包覆盖控制台日志级别,我该怎么做?

例如,我尝试了配置

handlers= java.util.logging.ConsoleHandler

.level= INFO

java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

com.mypackage.MyClass.level= ALL

MyClass日志级别设置为ALL,但它似乎没有在控制台上记录任何低于信息的内容。

4

1 回答 1

1

I think , you should give the log level at package level, not at the class level.

Try com.mypackage.level= ALL instead of com.mypackage.MyClass.level= ALL.

Also you can edit these settings by login to WAS admin console, under logs and traces.

于 2012-10-03T14:52:15.827 回答