Codota Logo
RedwoodConfiguration$Thunk
Code IndexAdd Codota to your IDE (free)

How to use
RedwoodConfiguration$Thunk
in
edu.stanford.nlp.util.logging

Best Java code snippets using edu.stanford.nlp.util.logging.RedwoodConfiguration$Thunk (Showing top 16 results out of 315)

  • Common ways to obtain RedwoodConfiguration$Thunk
private void myMethod () {
RedwoodConfiguration$Thunk r =
  • Codota IconRedwoodConfiguration.Handlers redwoodConfigurationHandlers;File file;redwoodConfigurationHandlers.file(file.getPath())
  • Smart code suggestions by Codota
}
origin: stanfordnlp/CoreNLP

/**
 * Add handlers to Redwood. This is the main way to tell Redwood to do stuff.
 * Use this by calling a combination of methods in Handlers. It may be useful
 * to "import static RedwoodConfiguration.Handlers.*"
 *
 * For example:
 * <pre>
 *   handlers(branch(
 *     chain( hideDebug, collapseApproximate, branch( output, file("stderr.log") ),
 *     chain( showOnlyError, file("err.log") ).
 *     chain( showOnlyChannels("results", "evaluate"), file("results.log") ),
 *     chain( file("redwood.log") ),
 *   noop))
 * </pre>
 *
 * @param paths A number of paths to add.
 * @return this
 */
public RedwoodConfiguration handlers(Thunk... paths) {
 for (final Thunk thunk : paths) {
  tasks.add(() -> thunk.apply(RedwoodConfiguration.this, Redwood.rootHandler()));
 }
 return this;
}
origin: stanfordnlp/CoreNLP

 @Override
 public void apply(RedwoodConfiguration config, Redwood.RecordHandlerTree root) {
  if (handlers.length == 0) {
   destination.apply(config, root);
  } else {
   root.addChildTree(buildChain(config, handlers, 0));
  }
 }
};
origin: com.guokr/stan-cn-com

 @Override
 public void apply(RedwoodConfiguration config, Redwood.RecordHandlerTree root) {
  if (handlers.length == 0) {
   destination.apply(config, root);
  } else {
   root.addChildTree(buildChain(config, handlers, 0));
  }
 }
};
origin: edu.stanford.nlp/stanford-corenlp

private Redwood.RecordHandlerTree buildChain(RedwoodConfiguration config, LogRecordHandler[] handlers, int i) {
 Redwood.RecordHandlerTree rtn = new Redwood.RecordHandlerTree(handlers[i]);
 if (i < handlers.length - 1) {
  rtn.addChildTree( buildChain(config, handlers, i + 1) );
 } else {
  destination.apply(config, rtn);
 }
 return rtn;
}
@Override
origin: edu.stanford.nlp/stanford-parser

/**
 * Send any incoming messages multiple ways.
 * For example, you may want to send the same output to console and a file.
 * @param destinations The destinations for log messages coming into this node.
 */
public static Thunk branch(final Thunk... destinations) {
 return (config, root) -> {
  for (Thunk destination : destinations) {
   destination.apply(config, root);
  }
 };
}
origin: com.guokr/stan-cn-com

private Redwood.RecordHandlerTree buildChain(RedwoodConfiguration config, LogRecordHandler[] handlers, int i) {
 Redwood.RecordHandlerTree rtn = new Redwood.RecordHandlerTree(handlers[i]);
 if (i < handlers.length - 1) {
  rtn.addChildTree( buildChain(config, handlers, i + 1) );
 } else {
  destination.apply(config, rtn);
 }
 return rtn;
}
@Override
origin: edu.stanford.nlp/stanford-corenlp

 @Override
 public void apply(RedwoodConfiguration config, Redwood.RecordHandlerTree root) {
  if (handlers.length == 0) {
   destination.apply(config, root);
  } else {
   root.addChildTree(buildChain(config, handlers, 0));
  }
 }
};
origin: edu.stanford.nlp/stanford-parser

 @Override
 public void apply(RedwoodConfiguration config, Redwood.RecordHandlerTree root) {
  if (handlers.length == 0) {
   destination.apply(config, root);
  } else {
   root.addChildTree(buildChain(config, handlers, 0));
  }
 }
};
origin: edu.stanford.nlp/stanford-parser

private Redwood.RecordHandlerTree buildChain(RedwoodConfiguration config, LogRecordHandler[] handlers, int i) {
 Redwood.RecordHandlerTree rtn = new Redwood.RecordHandlerTree(handlers[i]);
 if (i < handlers.length - 1) {
  rtn.addChildTree( buildChain(config, handlers, i + 1) );
 } else {
  destination.apply(config, rtn);
 }
 return rtn;
}
@Override
origin: com.guokr/stan-cn-com

 @Override
 public void apply(RedwoodConfiguration config, Redwood.RecordHandlerTree root) {
  for (Thunk destination : destinations) {
   destination.apply(config, root);
  }
 }
};
origin: com.guokr/stan-cn-com

 @Override
 public void run() {
  thunk.apply(RedwoodConfiguration.this, Redwood.rootHandler());
 }
});
origin: stanfordnlp/CoreNLP

/**
 * Send any incoming messages multiple ways.
 * For example, you may want to send the same output to console and a file.
 * @param destinations The destinations for log messages coming into this node.
 */
public static Thunk branch(final Thunk... destinations) {
 return (config, root) -> {
  for (Thunk destination : destinations) {
   destination.apply(config, root);
  }
 };
}
origin: edu.stanford.nlp/stanford-corenlp

/**
 * Add handlers to Redwood. This is the main way to tell Redwood to do stuff.
 * Use this by calling a combination of methods in Handlers. It may be useful
 * to "import static RedwoodConfiguration.Handlers.*"
 *
 * For example:
 * <pre>
 *   handlers(branch(
 *     chain( hideDebug, collapseApproximate, branch( output, file("stderr.log") ),
 *     chain( showOnlyError, file("err.log") ).
 *     chain( showOnlyChannels("results", "evaluate"), file("results.log") ),
 *     chain( file("redwood.log") ),
 *   noop))
 * </pre>
 *
 * @param paths A number of paths to add.
 * @return this
 */
public RedwoodConfiguration handlers(Thunk... paths) {
 for (final Thunk thunk : paths) {
  tasks.add(() -> thunk.apply(RedwoodConfiguration.this, Redwood.rootHandler()));
 }
 return this;
}
origin: stanfordnlp/CoreNLP

private Redwood.RecordHandlerTree buildChain(RedwoodConfiguration config, LogRecordHandler[] handlers, int i) {
 Redwood.RecordHandlerTree rtn = new Redwood.RecordHandlerTree(handlers[i]);
 if (i < handlers.length - 1) {
  rtn.addChildTree( buildChain(config, handlers, i + 1) );
 } else {
  destination.apply(config, rtn);
 }
 return rtn;
}
@Override
origin: edu.stanford.nlp/stanford-parser

/**
 * Add handlers to Redwood. This is the main way to tell Redwood to do stuff.
 * Use this by calling a combination of methods in Handlers. It may be useful
 * to "import static RedwoodConfiguration.Handlers.*"
 *
 * For example:
 * <pre>
 *   handlers(branch(
 *     chain( hideDebug, collapseApproximate, branch( output, file("stderr.log") ),
 *     chain( showOnlyError, file("err.log") ).
 *     chain( showOnlyChannels("results", "evaluate"), file("results.log") ),
 *     chain( file("redwood.log") ),
 *   noop))
 * </pre>
 *
 * @param paths A number of paths to add.
 * @return this
 */
public RedwoodConfiguration handlers(Thunk... paths) {
 for (final Thunk thunk : paths) {
  tasks.add(() -> thunk.apply(RedwoodConfiguration.this, Redwood.rootHandler()));
 }
 return this;
}
origin: edu.stanford.nlp/stanford-corenlp

/**
 * Send any incoming messages multiple ways.
 * For example, you may want to send the same output to console and a file.
 * @param destinations The destinations for log messages coming into this node.
 */
public static Thunk branch(final Thunk... destinations) {
 return (config, root) -> {
  for (Thunk destination : destinations) {
   destination.apply(config, root);
  }
 };
}
edu.stanford.nlp.util.loggingRedwoodConfiguration$Thunk

Most used methods

  • apply

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
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