@Test
    public void testSetup() throws IOException {
        try {
            final File zookeeperLogFile = folder.newFile("zookeeper.log");
            System.setProperty("zookeeper_log_file_prefix", zookeeperLogFile.getAbsolutePath());
            LogSetup.initVespaLogging("TST");
            Logger.getLogger("").log(VespaLogHandlerTestCase.record2);
            Logger.getLogger("").log(VespaLogHandlerTestCase.record1);
            Logger.getLogger("").log(VespaLogHandlerTestCase.record2);
            Logger.getLogger("").log(zookeeperLogRecord); // Should not be written to log, due to use of ZooKeeperFilter
            Logger.getLogger("").log(curatorLogRecord); // Should not be written to log, due to use of ZooKeeperFilter
            Logger.getLogger("").log(notzookeeperLogRecord);
            String[] lines = VespaLogHandlerTestCase.readFile("test3");
            assertEquals(2, lines.length);
            assertEquals(VespaLogHandlerTestCase.record1String, lines[0]);
        } finally {
            LogSetup.clearHandlers();
            LogSetup.getLogHandler().closeFileTarget();
            assertTrue(new File("test3").delete());
        }
    }
Make sure we can install the logging stuff properly.

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