public class ApiConfigLogger
extends Object
This class is used to initialize log4j in the event that there is no log4j.properties/log4j.xml
file in the classpath and, as such, there is no appender configured. When no appenders are
configured the log4j system emits an annoying message. By configuring a "null" appender if no
other appenders are configured we prevent that error message from being displayed.
The initializeLogging() method is encapsulated in this class to avoid problems with the
classloader if a log4j compatibility layer is used. slf4j has such a compatibility layer which
defines org.apache.log4j.Logger but does not include org.apache.log4j.Appender.