Demo entry 6720362

java code

   

Submitted by anonymous on Mar 16, 2018 at 10:03
Language: Java. Code size: 288 Bytes.

Appender<ILoggingEvent> mockAppender = (Appender<ILoggingEvent>) mock(Appender.class);
ArgumentCaptor<LoggingEvent> captorLoggingEvent = new ArgumentCaptor<LoggingEvent>();
Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
root.addAppender(mockAppender);        

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).