@Override
    public void write(String entry) throws IOException {
        final LoggingEvent event = new LoggingEvent();
        event.setLevel(Level.INFO);
        event.setLoggerName("http.request");
        event.setMessage(entry);
        event.setTimeStamp(System.currentTimeMillis());
        event.setLoggerContext(loggerContext);

        appenders.appendLoopOnAppenders(event);
    }
@Test
    void logsRequestsToTheAppenders() throws Exception {
        final String requestLine = "1, 2 buckle my shoe";
        slf4jRequestLog.write(requestLine);
        final ArgumentCaptor<ILoggingEvent> captor = ArgumentCaptor.forClass(ILoggingEvent.class);
        verify(appender, timeout(1000)).doAppend(captor.capture());

        final ILoggingEvent event = captor.getValue();
        assertThat(event.getFormattedMessage()).isEqualTo(requestLine);
        assertThat(event.getLevel()).isEqualTo(Level.INFO);
        assertThat(event).hasToString("[INFO] 1, 2 buckle my shoe");
    }