Tabnine Logo
Debug.toLogString
Code IndexAdd Tabnine to your IDE (free)

How to use
toLogString
method
in
com.moz.fiji.schema.util.Debug

Best Java code snippets using com.moz.fiji.schema.util.Debug.toLogString (Showing top 1 results out of 315)

origin: com.moz.fiji.schema/fiji-schema

/**
 * Logs the process configuration, for debugging purposes.
 *
 * Note: this is very verbose.
 *
 * @param conf Configuration to log.
 */
public static void logConfiguration(final Configuration conf) {
 LOG.info(LINE);
 LOG.info("Using Job tracker: {}", conf.get("mapred.job.tracker"));
 LOG.info("Using default HDFS: {}", conf.get("fs.defaultFS"));
 LOG.info("Using HBase: quorum: {} - client port: {}",
   conf.get("hbase.zookeeper.quorum"), conf.get("hbase.zookeeper.property.clientPort"));
 LOG.info(LINE);
 LOG.info("Using Avro package: {}", Package.getPackage("org.apache.avro"));
 LOG.info(LINE);
 LOG.info("Environment variables:\n{}\n{}\n{}",
   LINE, toLogString(System.getenv().entrySet()), LINE);
 LOG.info("System properties:\n{}\n{}\n{}",
   LINE, toLogString(System.getProperties().entrySet()), LINE);
 LOG.info("Classpath:\n{}\n{}\n{}",
   LINE, Joiner.on("\n").join(System.getProperty("java.class.path").split(":")), LINE);
 LOG.info("Hadoop configuration:\n{}\n{}\n{}",
   LINE, toLogString(conf), LINE);
}
com.moz.fiji.schema.utilDebugtoLogString

Javadoc

Formats a collection of key-value pairs, for logging purposes.

Popular methods of Debug

  • getStackTrace
    Returns a string representation of the current stack trace.
  • logConfiguration
    Logs the process configuration, for debugging purposes. Note: this is very verbose.
  • toDebugString
    Pretty-prints an HBase filter, for debugging purposes.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for Android Studio
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