}
// static enable() methods omit the option of specifying a
// predicate. Calling constructor and starting manually
// instead
final ConsoleReporter reporter = new ConsoleReporter(Metrics.defaultRegistry(),
stream,
getMetricPredicate());
reporter.start(getPeriod(), getRealTimeunit());
}
catch (Exception e)
{
log.error("Failure while enabling console reporter", e);