Codota Logo
LoggingRule.<init>
Code IndexAdd Codota to your IDE (free)

How to use
net.digitalid.utility.logging.filter.LoggingRule
constructor

Best Java code snippets using net.digitalid.utility.logging.filter.LoggingRule.<init> (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: net.digitalid.utility/utility-logging

/**
 * Returns a logging rule with the given threshold.
 */
@Pure
public static @Nonnull LoggingRule with(@Nonnull Level threshold) {
  return new LoggingRule(threshold, null, null, null);
}

origin: net.digitalid.utility/utility-logging

/**
 * Returns a logging rule with the given threshold, caller prefix, thread prefix and message regex.
 */
@Pure
public static @Nonnull LoggingRule with(@Nonnull Level threshold, @Nullable String callerPrefix, @Nullable String threadPrefix, @Nullable String messageRegex) {
  return new LoggingRule(threshold, callerPrefix, threadPrefix, messageRegex);
}

origin: net.digitalid.utility/utility-logging

/**
 * Returns a logging rule with the given threshold and caller prefix.
 */
@Pure
public static @Nonnull LoggingRule with(@Nonnull Level threshold, @Nullable String callerPrefix) {
  return new LoggingRule(threshold, callerPrefix, null, null);
}

origin: net.digitalid.utility/utility-logging

/**
 * Returns a logging rule with the given threshold, caller prefix and thread prefix.
 */
@Pure
public static @Nonnull LoggingRule with(@Nonnull Level threshold, @Nullable String callerPrefix, @Nullable String threadPrefix) {
  return new LoggingRule(threshold, callerPrefix, threadPrefix, null);
}

origin: net.digitalid.utility/utility-logging

/**
 * Decodes the given line and returns the corresponding rule.
 * 
 * @throws IllegalArgumentException if a rule has an invalid level.
 */
@Pure
public static @Nonnull LoggingRule decode(@Nonnull String line) throws IllegalArgumentException {
  final @Nonnull @NonNullableElements String[] tokens = line.split(";", 4);
  final @Nonnull Level threshold = Level.valueOf(tokens[0].trim().toUpperCase());
  final @Nullable String callerPrefix = getNonEmpty(tokens, 1);
  final @Nullable String threadPrefix = getNonEmpty(tokens, 2);
  final @Nullable String messageRegex = getNonEmpty(tokens, 3);
  return new LoggingRule(threshold, callerPrefix, threadPrefix, messageRegex);
}

net.digitalid.utility.logging.filterLoggingRule<init>

Popular methods of LoggingRule

  • with
    Returns a logging rule with the given threshold, caller prefix, thread prefix and message regex.
  • accepts
    Returns whether this rule accepts the given message with the given arguments.
  • getNonEmpty
    Returns the token with the given index or null if the array is not long enough or the token is empty
  • getThreshold
    Returns the threshold at and above which messages are accepted.

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now