public BQCoreModuleExtender setLogLevel(String name, Level level) { contributeLogLevels().addBinding(name).toInstance(level); return this; }
@Override public BQCoreModuleExtender initAllExtensions() { contributeConfigs(); contributeProperties(); contributeVariables(); contributeVariableDeclarations(); contributeLogLevels(); contributeOptions(); contributeCommands(); contributeCommandDecorators(); contributeOptionDecorators(); contributeValueObjectsDescriptors(); contributeOptionPathDecorators(); return this; }
public BQCoreModuleExtender setLogLevel(String name, Level level) { contributeLogLevels().addBinding(name).toInstance(level); return this; }
/** * Provides a way to set default log levels for specific loggers. These settings can be overridden via Bootique * configuration of whatever logging module you might use, like bootique-logback. This feature may be handy to * suppress chatty third-party loggers, but still allow users to turn them on via configuration. * * @param binder DI binder passed to the Module that invokes this method. * @return {@link MapBinder} for Bootique properties. * @since 0.19 * @deprecated since 0.22 use {@link #extend(Binder)} to get an extender object, and * then call {@link BQCoreModuleExtender#setLogLevel(String, Level)}. */ @Deprecated public static MapBinder<String, Level> contributeLogLevels(Binder binder) { return extend(binder).contributeLogLevels(); }
@Override public BQCoreModuleExtender initAllExtensions() { contributeConfigs(); contributeProperties(); contributeVariables(); contributeVariableDeclarations(); contributeLogLevels(); contributeOptions(); contributeCommands(); contributeCommandDecorators(); contributeOptionDecorators(); return this; }