@Test
    public void testTextFormatting () {
        VespaFormatter formatter = new VespaFormatter(serviceName, app);

        LogRecord testRecord = new LogRecord(Level.INFO, "this {1} is {0} test");
        testRecord.setInstant(Instant.ofEpochMilli(1098709021843L));
        testRecord.setLongThreadID(123L);
        testRecord.setLoggerName("org.foo");
        Object[] params = { "a small", "message" };
        testRecord.setParameters(params);

        String expected = "1098709021.843000\t"
                          + hostname + "\t"
                          + pid
                          + "/123" + "\t"
                          + "serviceName\t"
                          + app
                          + ".org.foo\t"
                          + "info\t"
                          + "this message is a small test\n";

        assertEquals(expected, formatter.format(testRecord));
    }
test that {0} etc is replaced properly
vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java