Search in sources :

Example 6 with SimpleLayout

use of org.apache.log4j.SimpleLayout in project lucene-solr by apache.

the class RequestLoggingTest method setupAppender.

@Before
public void setupAppender() {
    writer = new StringWriter();
    appender = new WriterAppender(new SimpleLayout(), writer);
}
Also used : SimpleLayout(org.apache.log4j.SimpleLayout) StringWriter(java.io.StringWriter) WriterAppender(org.apache.log4j.WriterAppender) Before(org.junit.Before)

Aggregations

SimpleLayout (org.apache.log4j.SimpleLayout)6 WriterAppender (org.apache.log4j.WriterAppender)4 Appender (org.apache.log4j.Appender)3 Layout (org.apache.log4j.Layout)3 ByteArrayOutputStream (java.io.ByteArrayOutputStream)2 StringWriter (java.io.StringWriter)2 ConsoleAppender (org.apache.log4j.ConsoleAppender)2 Test (org.junit.Test)2 BootstrapProcessor (com.linkedin.databus.bootstrap.server.BootstrapProcessor)1 BootstrapServerConfig (com.linkedin.databus.bootstrap.server.BootstrapServerConfig)1 BootstrapServerStaticConfig (com.linkedin.databus.bootstrap.server.BootstrapServerStaticConfig)1 KeyFilterConfigHolder (com.linkedin.databus2.core.filter.KeyFilterConfigHolder)1 AvroFormat (com.linkedin.databus2.core.schema.tools.AvroConverter.AvroFormat)1 FileInputStream (java.io.FileInputStream)1 FileOutputStream (java.io.FileOutputStream)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 OutputStream (java.io.OutputStream)1 Schema (org.apache.avro.Schema)1 ParseException (org.apache.commons.cli.ParseException)1