/** * The conventional hierarchical notion of Levels, where info being enabled implies warn and error being enabled, is not a * requirement of the SLF4J API, so all levels you wish to enable must be passed explicitly to this method. If you wish to * use traditional hierarchical setups you may conveniently do so by using the constants in * {@link uk.org.lidalia.slf4jext.ConventionalLevelHierarchy} * * @param enabledLevels levels which will be considered enabled for this logger IN THIS THREAD; * does not affect enabled levels for this logger in other threads */ public void setEnabledLevels(final ImmutableSet<Level> enabledLevels) { this.enabledLevels.set(enabledLevels); }
/** * The conventional hierarchical notion of Levels, where info being enabled implies warn and error being enabled, is not a * requirement of the SLF4J API, so all levels you wish to enable must be passed explicitly to this method. If you wish to * use traditional hierarchical setups you may conveniently do so by using the constants in * {@link uk.org.lidalia.slf4jext.ConventionalLevelHierarchy} * * @param enabledLevels levels which will be considered enabled for this logger IN THIS THREAD; * does not affect enabled levels for this logger in other threads */ public void setEnabledLevels(final ImmutableSet<Level> enabledLevels) { this.enabledLevels.set(enabledLevels); }
@SuppressWarnings("unchecked") public void setContextMap(final Map contextMap) { value.set(new HashMap<String, String>(contextMap)); } }
@SuppressWarnings("unchecked") public void setContextMap(final Map contextMap) { value.set(new HashMap<String, String>(contextMap)); } }
@Override public T get() { final T initialValue = initialValueCreator.get(); set(initialValue); return initialValue; } };