Package com.cloudera.flume.handlers.text.output

Examples of com.cloudera.flume.handlers.text.output.Log4jOutputFormat


    snk.open();
    snk.append(e);
    snk.close();

    ByteArrayOutputStream exWriter = new ByteArrayOutputStream();
    Log4jOutputFormat fmt = new Log4jOutputFormat();
    fmt.format(exWriter, e);
    exWriter.close();
    String expected = new String(exWriter.toByteArray());

    // check the output to make sure it is what we expected.
    File fo = new File(f.getPath() + "/sub-foo");
View Full Code Here


    checkOutputFormat("syslog", new SyslogEntryFormat());
  }

  @Test
  public void testLog4jOutputFormat() throws IOException, InterruptedException {
    checkOutputFormat("log4j", new Log4jOutputFormat());
  }
View Full Code Here

    snk.open();
    snk.append(e);
    snk.close();

    ByteArrayOutputStream exWriter = new ByteArrayOutputStream();
    Log4jOutputFormat fmt = new Log4jOutputFormat();
    fmt.format(exWriter, e);
    exWriter.close();
    String expected = new String(exWriter.toByteArray());

    // check the output to make sure it is what we expected.
    File fo = new File(f.getPath() + "/sub-foo");
View Full Code Here

TOP

Related Classes of com.cloudera.flume.handlers.text.output.Log4jOutputFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.