static void flushMetricsLogger ( final MetricsLogger metricsLogger ) { metricsLogger . flushToString ( MetricsManager :: queue ) ; MetricsManager . rootMetricsLogger . flushToString ( MetricsManager :: queue ) ; }
Flush metrics collected by MetricsLogger to log files . Will be used by MetricsLogger to flush itself .