package me.coley.recaf;

import org.pmw.tinylog.Configurator;
import org.pmw.tinylog.Logger;
import org.pmw.tinylog.writers.FileWriter;
import picocli.CommandLine;

/**
 * Entry point &amp; version constant.
 *
 * @author Matt
 */
public class Recaf {
	/**
	 * Recaf version.
	 */
	public static final String VERSION = "2.0.0";

	public static void main(String[] args) {
		setupLogging();
		Logger.info("Starting Recaf-{}...", VERSION);
		// Invoke
		new CommandLine(new Initializer()).execute(args);
	}

	public static void setupLogging() {
		Configurator.defaultConfig()
				.formatPattern("{level}-{date}: {message|indent=4}")
				.writingThread(true)
				.addWriter(new FileWriter("rclog.txt"))
				.activate();
	}
}

@@ -140,27 +140,194 @@
 ort 
-picocli.CommandLine
+org.slf4j.LoggerFactory;%0Aimport org.slf4j.impl.SimpleLogger;%0Aimport picocli.CommandLine;%0A%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.PrintStream;%0Aimport java.lang.reflect.Field
 ;%0A%0A/
@@ -702,16 +702,44 @@
 ing() %7B%0A
+%09%09// Setup tinylog instance%0A
 %09%09Config
@@ -887,16 +887,16 @@
 .txt%22))%0A
-
 %09%09%09%09.act
@@ -904,13 +904,322 @@
 vate();%0A
+%09%09// Disable Slf4j (Configured by Aether depenency)%0A%09%09try %7B%0A%09%09%09Field target = LoggerFactory.getLogger(%22ROOT%22).getClass().getDeclaredField(%22TARGET_STREAM%22);%0A%09%09%09target.setAccessible(true);%0A%09%09%09target.set(null, new PrintStream(new ByteArrayOutputStream()));%0A%09%09%7D catch(Exception ex) %7B%0A%09%09%09ex.printStackTrace();%0A%09%09%7D%0A
 %09%7D%0A%7D%0A

Disable Aether's slf4j logging