package com.pixable.pixalytics.core.trace;

import android.content.Context;
import android.util.Log;

import com.pixable.pixalytics.core.platform.Platform;

import java.util.Collection;
import java.util.Map;

public class LogcatTraceProxy implements TraceProxy {
    private static final String TAG = LogcatTraceProxy.class.getSimpleName();

    @Override
    public void traceMessage(Context context, Level level, String messageTitle, Map<String, Object> properties, Collection<Platform> platforms) {
        final String finalMessage = messageTitle + " (" + properties + ") to " + platforms.toString();
        switch (level) {
            case DEBUG:
                Log.d(TAG, finalMessage);
                break;
            case INFO:
                Log.i(TAG, finalMessage);
                break;
            default:
                throw new IllegalArgumentException("What level is " + level + "?");
        }
    }
}

package com.pixable.pixalytics.core.trace;

import android.content.Context;
import android.util.Log;

import com.pixable.pixalytics.core.platform.Platform;

import java.util.Collection;
import java.util.Map;

public class LogcatTraceProxy implements TraceProxy {
    private static final String TAG = "Pixalytics-" + LogcatTraceProxy.class.getSimpleName();

    @Override
    public void traceMessage(Context context, Level level, String messageTitle, Map<String, Object> properties, Collection<Platform> platforms) {
        final String finalMessage = messageTitle + " (" + properties + ") to " + platforms.toString();
        switch (level) {
            case DEBUG:
                Log.d(TAG, finalMessage);
                break;
            case INFO:
                Log.i(TAG, finalMessage);
                break;
            default:
                throw new IllegalArgumentException("What level is " + level + "?");
        }
    }
}

TAG name change for the logcat traces
TAG name change for the logcat traces
