Class LoggerFactory
java.lang.Object
net.spy.memcached.compat.log.LoggerFactory
Factory to get logger instances.
The system property
net.spy.log.LoggerImpl should point
to an implementation of net.spy.compat.log.Logger to use.
Depending on how and where this was compiled, a sun logger (jdk 1.4) and/or log4j logger implementation may be included. Both are included with the official distribution.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static LoggerFactoryprivate Constructor<? extends Logger> private final ConcurrentMap<String, Logger> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidstatic LoggerGet a logger by class.static LoggerGet a logger by name.private LoggergetNewInstance(String name) private static voidinit()private LoggerinternalGetLogger(String name)
-
Field Details
-
instance
-
instances
-
instanceConstructor
-
-
Constructor Details
-
LoggerFactory
private LoggerFactory()Get an instance of LoggerFactory.
-
-
Method Details
-
init
private static void init() -
getLogger
-
getLogger
-
internalGetLogger
-
getNewInstance
private Logger getNewInstance(String name) throws InstantiationException, IllegalAccessException, InvocationTargetException -
getConstructor
private void getConstructor()
-