WebSphere Application Server - cannot view logger tree in WAS 6.0 AdminConsole - JSR47

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > September 2005 > cannot view logger tree in WAS 6.0 AdminConsole - JSR47





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author cannot view logger tree in WAS 6.0 AdminConsole - JSR47

2005-09-26, 6:04 pm

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.*".

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com