monitoringLogbackDataProvider.startProvider();
org.slf4j.Logger logger = LoggerFactory.getLogger(MonitoringLogbackDataProviderTest.class);
logger.info("Hello world.");
Mockito.verify(mock).submitLogEvent(Mockito.any(Date.class), Mockito.eq("INFO"), Mockito.anyString(), Mockito.eq("Hello world."));
LogbackConfigManager logbackConfigManager = new LogbackConfigManager(monitoringLogbackDataProvider);
logbackConfigManager.updateLogConfig(
"<configuration scan=\"true\" scanPeriod=\"15 seconds\">\r\n" +
" <appender name=\"CONSOLE\" class=\"ch.qos.logback.core.ConsoleAppender\">\r\n" +
" <layout class=\"ch.qos.logback.classic.PatternLayout\">\r\n" +
" <Pattern>%d{HH:mm:ss.SSS} [%thread] %.-1level %logger{36} - %msg%n</Pattern>\r\n" +
" </layout>\r\n" +