Skip to content

Instantly share code, notes, and snippets.

@ahasbini
ahasbini / Logger.java
Created October 12, 2019 13:37
Logger wrapper to show Gradle plugin logs in quite mode for effortless development and debugging
import org.gradle.api.logging.LogLevel;
import org.gradle.api.logging.Logging;
import org.slf4j.Marker;
/**
* Created by ahasbini on 11-Oct-19.
*/
public class Logger implements org.gradle.api.logging.Logger {
private static boolean useQuietLogs = false;
package test.ahasbini.com.test;
import android.util.Log;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.RuleChain;