Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
Exchange Timber with default Android logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Welsch committed Sep 26, 2016
1 parent 96d94e3 commit 4da934b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion thirtyinch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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);
}
};

Expand Down

0 comments on commit 4da934b

Please sign in to comment.