@Test
    public void testFindingCallingClassLogger() {
        SingleHandler sh = new SingleHandler();
        assertNull(sh.lastRecord());

        Logger log = Logger.getLogger(EventTestCase.class.getName());
        synchronized(log) {
            log.setUseParentHandlers(false);
            log.addHandler(sh);
            Event.starting("mintest");

            assertTrue(TestUtil.formatWithVespaFormatter(sh.lastRecord())
                               .contains("\t.com.yahoo.log.event.EventTestCase\tevent\tstarting/1 name=mintest"));

            Event.starting("startingName");
            Event.started("startedName");
            Event.stopping("stoppingName", "whyParam");
            Event.stopped("stoppedName", 1, 2);
            Event.count("countName", 1);
            Event.progress("progressName", 1, 2);
            Event.crash("crashName", 1, 2);
        }
    }
This test makes sure that the static event logging methods
successfully manage to find the right name on the calling
stack -- it should find the name of the calling class.
vespalog/src/test/java/com/yahoo/log/event/EventTestCase.java