it.geosolutions.tools.commons.logging
Class Log4JCheck
java.lang.Object
it.geosolutions.tools.commons.logging.Log4JCheck
public class Log4JCheck
- extends Object
|
Method Summary |
static boolean |
isConfigured()
Returns true if it appears that log4j have been previously configured. |
static void |
printInfo()
print info about registered appenders |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Log4JCheck
public Log4JCheck()
isConfigured
public static boolean isConfigured()
- Returns true if it appears that log4j have been previously configured.
This code checks to see if there are any appenders defined for log4j
which is the definitive way to tell if log4j is already initialized
see also:
http://www.basilv.com/psd/blog/2007/how-to-add-logging-to-ant-builds
printInfo
public static void printInfo()
- print info about registered appenders
Copyright © 2011-2012 GeoSolutions. All Rights Reserved.