/*
 * Copyright 2015 the original author or authors.
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution and is available at
 *
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.junit.gen5.launcher;

import java.util.ServiceLoader;

import org.junit.gen5.engine.TestEngine;

/**
 * @author Stefan Bechtold
 * @since 5.0
 */
class TestEngineRegistry {

	private static Iterable<TestEngine> testEngines;

	static Iterable<TestEngine> lookupAllTestEngines() {
		if (testEngines == null) {
			testEngines = ServiceLoader.load(TestEngine.class);

			// TODO LOG
			for (TestEngine testEngine : testEngines) {
				System.out.println(String.format("Discovered test engine with id: '%s'", testEngine.getId()));
			}

		}
		return testEngines;
	}

}

@@ -367,16 +367,49 @@
 eLoader;
+%0Aimport java.util.logging.Logger;
 %0A%0Aimport
@@ -521,16 +521,106 @@
 stry %7B%0A%0A
+%09private static final Logger LOG = Logger.getLogger(TestEngineRegistry.class.getName());%0A%0A
 %09private
@@ -803,24 +803,8 @@
 ss);
-%0A%0A%09%09%09// TODO LOG
 %0A%09%09%09
@@ -855,27 +855,23 @@
 %09%09%09%09
-System.out.println(
+LOG.info(() -%3E 
 Stri
@@ -947,17 +947,16 @@
 );%0A%09%09%09%7D%0A
-%0A
 %09%09%7D%0A%09%09re

Use java.util.logging