/*
 * Copyright 2016 Adam Speakman
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package speakman.whatsshakingnz.analytics;

import timber.log.Timber;

/**
 * Created by Adam on 2/14/2016.
 */
public class Forest {
    public static Timber.Tree uproot() {
        return new Timber.Tree() {
            @Override
            protected void log(int priority, String tag, String message, Throwable t) {
                // TODO Add Crashlytics logging
            }
        };
    }
}

@@ -635,16 +635,87 @@
 ytics;%0A%0A
+import android.util.Log;%0A%0Aimport com.crashlytics.android.Crashlytics;%0A%0A
 import t
@@ -732,16 +732,16 @@
 Timber;%0A
-
 %0A/**%0A * 
@@ -1002,19 +1002,96 @@
     
-// TODO Add
+if (priority %3C Log.WARN) %7B%0A                    return;%0A                %7D%0A               
  Cra
@@ -1102,16 +1102,137 @@
 tics
- logging
+.log(priority, tag, message);%0A                if (t != null) %7B%0A                    Crashlytics.logException(t);%0A                %7D
 %0A   

Add production logging