/** * Enables the console reporter for the default metrics registry, and causes it to print to * STDOUT with the specified period. * * @param period the period between successive outputs * @param unit the time unit of {@code period} */ public static void enable(long period, TimeUnit unit) { enable(Metrics.defaultRegistry(), period, unit); }
/** Process stderr options */ private void processStderr() { if (stderrEnabled()) { ConsoleReporter.enable(stderrPrintSecs, TimeUnit.SECONDS); } } }
ConsoleReporter.enable(1, TimeUnit.SECONDS); break; case FILE:
ConsoleReporter.enable(1, TimeUnit.SECONDS); break; case FILE: