@Test void testConfigureEventMappersShouldThrowExceptionWhenFailOnNewInstance() { Element root = new Element("root"); Element em = new Element("event-mapper"); em.setAttribute("class", "i.dont.Exist"); root.addContent(em); MappingLogEventWriter writer = new MappingLogEventWriter(); assertThrows(ConfigurationException.class, () -> writer.setConfiguration(root)); }
@Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }  }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }  @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(LogEvent ev); @Override void setConfiguration(Element e); }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }  @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(LogEvent ev); @Override void setConfiguration(Element e);  }