package frontEnd;

import java.io.IOException;
import java.io.PrintStream;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.jnativehook.NativeHookException;

import core.userDefinedTask.internals.SharedVariablesPubSubManager;
import globalListener.GlobalListenerHookController;
import staticResources.BootStrapResources;
import utilities.logging.CompositeOutputStream;

public class MainFrontEnd {

	private static final Logger LOGGER = Logger.getLogger(MainFrontEnd.class.getName());
	private static MainBackEndHolder backEnd;

	public static void run() {
		/*************************************************************************************/
		/********************************Extracting resources*********************************/
		try {
			BootStrapResources.extractResources();
		} catch (IOException e) {
			LOGGER.log(Level.SEVERE, "Cannot extract bootstrap resources.", e);
			System.exit(2);
		}
		/*************************************************************************************/
		/********************************Initializing global hooks****************************/
		GlobalListenerHookController.of().initialize();
		SharedVariablesPubSubManager.get().start();
		/*************************************************************************************/
		/********************************Start main program***********************************/
		backEnd = new MainBackEndHolder();
		backEnd.loadConfig(null);

		try {
			backEnd.keysManager.startGlobalListener();
		} catch (NativeHookException e) {
			e.printStackTrace();
		}

		backEnd.configureMainHotkeys();
		/*************************************************************************************/
		backEnd.renderTaskGroup();

		System.setOut(new PrintStream(CompositeOutputStream.of(backEnd.logHolder, System.out)));
		System.setErr(new PrintStream(CompositeOutputStream.of(backEnd.logHolder, System.err)));
		/*************************************************************************************/

		backEnd.initiateBackEndActivities();
		backEnd.launchUI();
	}
}

@@ -68,16 +68,57 @@
 Stream;%0A
+import java.util.logging.ConsoleHandler;%0A
 import j
@@ -1948,16 +1948,73 @@
 err)));%0A
+%09%09Logger.getLogger(%22%22).addHandler(new ConsoleHandler());%0A
 %09%09/*****

Add missing log handler so that log messages show up.