PerformanceLogger plog2 = new PerformanceLogger(1000);
plog2.logElapsed("should-never-be-logged");
assertThat(logString(), not(containsString("should-never-be-logged")));
Thread.sleep(1500);
plog2.logElapsed("should-be-logged");
assertThat(logString(), containsString("should-be-logged"));
Logger logbackLogger = (Logger) LoggerFactory.getLogger(PerformanceLogger.class);
logbackLogger.setLevel(Level.ERROR);
plog.logElapsedAndRestart("do-not-log-me");