@Before
    public void setUp() {
        System.setProperty("config.id", "my-test-config-id");
        System.setProperty("vespa.log.target", "file:test3");

        zookeeperLogRecord = new LogRecord(Level.WARNING, "zookeeper log record");
        zookeeperLogRecord.setLoggerName("org.apache.zookeeper.server.NIOServerCnxn");
        zookeeperLogRecord.setInstant(Instant.ofEpochMilli(1107011348029L));

        curatorLogRecord = new LogRecord(Level.WARNING, "curator log record");
        curatorLogRecord.setLoggerName("org.apache.curator.utils.DefaultTracerDriver");
        curatorLogRecord.setInstant(Instant.ofEpochMilli(1107011348029L));

        hostname = LogUtils.getHostName();
        pid = LogUtils.getPID();

        zookeeperLogRecordString = "1107011348.029000\t"
                + hostname
                + "\t"
                + pid
                + "/" + zookeeperLogRecord.getLongThreadID() + "\t-\t.org.apache.zookeeper.server.NIOServerCnxn"
                + "\twarning\tzookeeper log record";

        zookeeperLogRecordError = new LogRecord(Level.SEVERE, "zookeeper error");
        zookeeperLogRecordError.setLoggerName("org.apache.zookeeper.server.NIOServerCnxn");
        zookeeperLogRecordError.setInstant(Instant.ofEpochMilli(1107011348029L));

        curatorLogRecordError = new LogRecord(Level.SEVERE, "curator log record");
        curatorLogRecordError.setLoggerName("org.apache.curator.utils.DefaultTracerDriver");
        curatorLogRecordError.setInstant(Instant.ofEpochMilli(1107011348029L));

        notzookeeperLogRecord = new LogRecord(Level.WARNING, "not zookeeper log record");
        notzookeeperLogRecord.setLoggerName("org.apache.foo.Bar");
        notzookeeperLogRecord.setInstant(Instant.ofEpochMilli(1107011348029L));
    }
Make sure we can install the logging stuff properly.

@author Bjorn Borud
vespalog/src/test/java/com/yahoo/log/LogSetupTestCase.java