congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Settings.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
slf4jtest.Settings
constructor

Best Java code snippets using slf4jtest.Settings.<init> (Showing top 16 results out of 315)

origin: com.portingle/slf4jtesting

public TestLoggerFactory() {
  this.settings = new Settings();
}
origin: portingle/slf4jtesting

public Settings printingEnabled(boolean print) {
  return new Settings(print, printStreams, printSuppressions, enabledLevels, delegates);
}
origin: portingle/slf4jtesting

public TestLoggerFactory() {
  this.settings = new Settings();
}
origin: com.portingle/slf4jtesting

public static Settings instance() {
  return new Settings();
}
origin: com.portingle/slf4jtesting

public Settings printingEnabled(boolean print) {
  return new Settings(print, printStreams, printSuppressions, enabledLevels, delegates);
}
origin: portingle/slf4jtesting

public static Settings instance() {
  return new Settings();
}
origin: com.portingle/slf4jtesting

public Settings delegate(String loggerName, Logger logger) {
  Map<String, Logger> newDelegates = new HashMap<>(delegates);
  newDelegates.put(loggerName, logger);
  return new Settings(printingEnabled, printStreams, printSuppressions, enabledLevels, newDelegates);
}
origin: com.portingle/slf4jtesting

public Settings suppressPrinting(Predicate<LogMessage> pred) {
  List<Predicate<LogMessage>> newSuppressions = new ArrayList<>(printSuppressions);
  newSuppressions.add(pred);
  return new Settings(printingEnabled, printStreams, newSuppressions, enabledLevels, delegates);
}
origin: com.portingle/slf4jtesting

public Settings redirectPrintStream(LogLevel level, PrintStream ps) {
  Map<LogLevel, PrintStream> newPrintStreams = new HashMap<>(printStreams);
  newPrintStreams.put(level, ps);
  return new Settings(printingEnabled, newPrintStreams, printSuppressions, enabledLevels, delegates);
}
origin: portingle/slf4jtesting

public Settings delegate(String loggerName, Logger logger) {
  Map<String, Logger> newDelegates = new HashMap<>(delegates);
  newDelegates.put(loggerName, logger);
  return new Settings(printingEnabled, printStreams, printSuppressions, enabledLevels, newDelegates);
}
origin: portingle/slf4jtesting

public Settings redirectPrintStream(LogLevel level, PrintStream ps) {
  Map<LogLevel, PrintStream> newPrintStreams = new HashMap<>(printStreams);
  newPrintStreams.put(level, ps);
  return new Settings(printingEnabled, newPrintStreams, printSuppressions, enabledLevels, delegates);
}
origin: com.portingle/slf4jtesting

public Settings enable(LogLevel... levels) {
  Set<LogLevel> newLevels = new HashSet<>(enabledLevels);
  newLevels.addAll(Arrays.asList(levels));
  return new Settings(printingEnabled, printStreams, printSuppressions, newLevels, delegates);
}
origin: portingle/slf4jtesting

public Settings suppressPrinting(Predicate<LogMessage> pred) {
  List<Predicate<LogMessage>> newSuppressions = new ArrayList<>(printSuppressions);
  newSuppressions.add(pred);
  return new Settings(printingEnabled, printStreams, newSuppressions, enabledLevels, delegates);
}
origin: com.portingle/slf4jtesting

public Settings disable(LogLevel... levels) {
  Set<LogLevel> newLevels = new HashSet<>(enabledLevels);
  newLevels.removeAll(Arrays.asList(levels));
  return new Settings(printingEnabled, printStreams, printSuppressions, newLevels, delegates);
}
origin: portingle/slf4jtesting

public Settings enable(LogLevel... levels) {
  Set<LogLevel> newLevels = new HashSet<>(enabledLevels);
  newLevels.addAll(Arrays.asList(levels));
  return new Settings(printingEnabled, printStreams, printSuppressions, newLevels, delegates);
}
origin: portingle/slf4jtesting

public Settings disable(LogLevel... levels) {
  Set<LogLevel> newLevels = new HashSet<>(enabledLevels);
  newLevels.removeAll(Arrays.asList(levels));
  return new Settings(printingEnabled, printStreams, printSuppressions, newLevels, delegates);
}
slf4jtestSettings<init>

Popular methods of Settings

  • delegate
  • disable
  • enable
  • isEnabled
  • suppressPrinting
  • readonlyList
  • readonlyMap
  • readonlySet
  • buildLogging
  • disableAll
  • enableAll
  • instance
  • enableAll,
  • instance,
  • printingEnabled,
  • redirectPrintStream

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now