package com.infonuascape.osrshelper.utils;

import android.util.Log;

import com.crashlytics.android.Crashlytics;

/**
 * Created by marc_ on 2018-02-05.
 */

public class Logger {
    private static final String TAG = "OSRS Helper";

    public static void add(final String... logs) {
        StringBuilder stringBuilder = new StringBuilder();

        for(String log : logs) stringBuilder.append(log);

        String log = stringBuilder.toString();
        Crashlytics.log(log);
        Log.d(TAG, log);
    }
}

@@ -108,16 +108,54 @@
 ytics;%0A%0A
+import io.fabric.sdk.android.Fabric;%0A%0A
 /**%0A * C
@@ -483,16 +483,57 @@
 ring();%0A
+        if(Fabric.isInitialized()) %7B%0A    
         
@@ -550,24 +550,34 @@
 s.log(log);%0A
+        %7D%0A
         Log.

Fix crash for widget