/** * Detects if a Logger with the specified name exists. * @param name The Logger name to search for. * @return true if the Logger exists, false otherwise. */ public boolean hasLogger(final String name) { return getOrCreateInnerMap(DEFAULT_FACTORY_KEY).containsKey(name); }
/** * Returns an ExtendedLogger. * @param name The name of the Logger to return. * @return The logger with the specified name. */ public T getLogger(final String name) { return getOrCreateInnerMap(DEFAULT_FACTORY_KEY).get(name); }
/** * Detects if a Logger with the specified name and MessageFactory type exists. * @param name The Logger name to search for. * @param messageFactoryClass The message factory class to search for. * @return true if the Logger exists, false otherwise. * @since 2.5 */ public boolean hasLogger(final String name, final Class<? extends MessageFactory> messageFactoryClass) { return getOrCreateInnerMap(factoryClassKey(messageFactoryClass)).containsKey(name); }
/** * Detects if a Logger with the specified name and MessageFactory exists. * @param name The Logger name to search for. * @param messageFactory The message factory to search for. * @return true if the Logger exists, false otherwise. * @since 2.5 */ public boolean hasLogger(final String name, final MessageFactory messageFactory) { return getOrCreateInnerMap(factoryKey(messageFactory)).containsKey(name); }
/** * Returns an ExtendedLogger. * @param name The name of the Logger to return. * @param messageFactory The message factory is used only when creating a logger, subsequent use does not change * the logger but will log a warning if mismatched. * @return The logger with the specified name. */ public T getLogger(final String name, final MessageFactory messageFactory) { return getOrCreateInnerMap(factoryKey(messageFactory)).get(name); }
public void putIfAbsent(final String name, final MessageFactory messageFactory, final T logger) { factory.putIfAbsent(getOrCreateInnerMap(factoryKey(messageFactory)), name, logger); } }
/** * Returns an ExtendedLogger. * @param name The name of the Logger to return. * @return The logger with the specified name. */ public T getLogger(final String name) { return getOrCreateInnerMap(DEFAULT_FACTORY_KEY).get(name); }
/** * Detects if a Logger with the specified name exists. * @param name The Logger name to search for. * @return true if the Logger exists, false otherwise. */ public boolean hasLogger(final String name) { return getOrCreateInnerMap(DEFAULT_FACTORY_KEY).containsKey(name); }
/** * Returns an ExtendedLogger. * @param name The name of the Logger to return. * @param messageFactory The message factory is used only when creating a logger, subsequent use does not change * the logger but will log a warning if mismatched. * @return The logger with the specified name. */ public T getLogger(final String name, final MessageFactory messageFactory) { return getOrCreateInnerMap(factoryKey(messageFactory)).get(name); }
/** * Detects if a Logger with the specified name and MessageFactory exists. * @param name The Logger name to search for. * @param messageFactory The message factory to search for. * @return true if the Logger exists, false otherwise. * @since 2.5 */ public boolean hasLogger(final String name, final MessageFactory messageFactory) { return getOrCreateInnerMap(factoryKey(messageFactory)).containsKey(name); }
/** * Detects if a Logger with the specified name and MessageFactory type exists. * @param name The Logger name to search for. * @param messageFactoryClass The message factory class to search for. * @return true if the Logger exists, false otherwise. * @since 2.5 */ public boolean hasLogger(final String name, final Class<? extends MessageFactory> messageFactoryClass) { return getOrCreateInnerMap(factoryClassKey(messageFactoryClass)).containsKey(name); }
public void putIfAbsent(final String name, final MessageFactory messageFactory, final T logger) { factory.putIfAbsent(getOrCreateInnerMap(factoryKey(messageFactory)), name, logger); } }