@Override
        public void log(Level level, String message) {
            msgs.add(new LogMessage(level, message));
        }
Recreate the combination used in some factory tests
config-model/src/test/java/com/yahoo/config/model/provision/ModelProvisioningTest.java