/**
* This method intuits if Log4j got configured correctly by checking if there are * Cateogies, and if the Root Category has at least one Appender setup. * @return boolean True if Log4j is configured properly. */ private static boolean isLog4jConfigured() { Enumeration theCats = Category.getCurrentCategories(); Enumeration theRootAppenders = Category.getRoot().getAllAppenders(); return ( ( theCats.hasMoreElements() ) || ( !( theRootAppenders instanceof org.apache.log4j.helpers.NullEnumeration ) ) ); }
|
- Related to Some questions Pugh, Eric
- RE: Related to Some questions John Volkar
- RE: Related to Some questions Ceki Gülcü
- RE: Related to Some questions Andy Kriger
- RE: Related to Some questions Pugh, Eric
- RE: Related to Some questions Ceki Gülcü
- RE: Related to Some questions rainer . klute
- RE: Related to Some questions Ceki Gülcü
- RE: Related to Some questions rainer . klute