开发者

Level configuration Java Logging API by properties file

i have trouble using the java logging api. My error seems to be pretty basic but i can't find it. I use the following configuration file :

handlers= java.util.logging.C开发者_StackOverflow中文版onsoleHandler

java.util.logging.ConsoleHandler.level = ALL

.level= FINEST
com = SEVERE

But it seems that only the .level-parameter is used. When i log from a logger called "com.test" (private static Logger log = Logger.getLogger("com.test");) the log shows all levels and ignores that the com package is SEVERE. When i change the .level parameter everything works as expected and therefore i'm sure to use the right configurationfile.

All documentation that i have seen shows that this should work. Anyone sees my mistake?


Solution: com.level = SEVERE

Now i feel really stupid ...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜