/** * 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 enabledLevelsForAllThreads levels which will be considered enabled for this logger IN ALL THREADS */ public void setEnabledLevelsForAllThreads(final ImmutableSet<Level> enabledLevelsForAllThreads) { this.enabledLevels = new ThreadLocal<>(enabledLevelsForAllThreads); }
/** * 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 enabledLevelsForAllThreads levels which will be considered enabled for this logger IN ALL THREADS */ public void setEnabledLevelsForAllThreads(final ImmutableSet<Level> enabledLevelsForAllThreads) { this.enabledLevels = new ThreadLocal<>(enabledLevelsForAllThreads); }