From 4da934b2989a0fbc99120cc421677641cc87a21b Mon Sep 17 00:00:00 2001 From: Pascal Welsch Date: Mon, 26 Sep 2016 18:48:54 +0200 Subject: [PATCH] Exchange Timber with default Android logging --- thirtyinch/build.gradle | 1 - .../src/main/java/net/grandcentrix/thirtyinch/TiLog.java | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/thirtyinch/build.gradle b/thirtyinch/build.gradle index 8fa5ed7a..c3ce1e26 100644 --- a/thirtyinch/build.gradle +++ b/thirtyinch/build.gradle @@ -37,7 +37,6 @@ android { dependencies { compile "com.android.support:appcompat-v7:$supportLibraryVersion" - compile "com.jakewharton.timber:timber:4.3.1" testCompile 'junit:junit:4.12' testCompile 'org.mockito:mockito-core:1.10.19' diff --git a/thirtyinch/src/main/java/net/grandcentrix/thirtyinch/TiLog.java b/thirtyinch/src/main/java/net/grandcentrix/thirtyinch/TiLog.java index 36a77f19..e5a939c4 100644 --- a/thirtyinch/src/main/java/net/grandcentrix/thirtyinch/TiLog.java +++ b/thirtyinch/src/main/java/net/grandcentrix/thirtyinch/TiLog.java @@ -19,8 +19,6 @@ import android.support.annotation.Nullable; import android.util.Log; -import timber.log.Timber; - /** * Logging class used for all logging of ThirtyInch. */ @@ -42,11 +40,13 @@ interface Logger { void log(final int level, final String tag, final String msg); } + private static final String TAG = "ThirtyInch"; + // logs everything to Timber by default private static Logger logger = new Logger() { @Override public void log(final int level, final String tag, final String msg) { - Timber.tag(tag).log(level, msg); + Log.println(level, TAG, tag + ": " + msg); } };