|
| According to the infocenter of WAS 6.0 and JDK docs, the logger hierarchical namespace will be created automatically as long as the logger names conform to the dot-separated naming convention. But it won't work for me. I tried many ways to create the logg
er trees, but only got single logger items list in the AdminConsole, not the tree structure.
CODE:
mgr = LogManager.getLogManager();
loggerRoot = Logger.getLogger("com.xyz");
mgr.addLogger(loggerRoot);
loggerA = Logger.getLogger("com.xyz.ServletTestA");
mgr.addLogger(loggerA);
loggerB = Logger.getLogger("com.xyz.ServletTestB");
mgr.addLogger(loggerB);
Additionally, if I changed the logger name from "com.xyz.ServletTestA" to "com.xyz.ServletTest_A", I would get two tree-structured logger names in WAS6 AdminConsole, one is the child "com.xyz.ServletTest_A", and the other is the parent node "com.xyz.Servl
etTest.*".
|
|