package com.episode6.hackit.chop.android;

import android.util.Log;

import com.episode6.hackit.chop.Chop;

public class AndroidDebugTree implements Chop.Tree {

  @Override
  public boolean supportsLevel(Chop.Level level) {
    return true;
  }

  @Override
  public void chopLog(Chop.Level level, String tag, String message) {
    switch (level) {
      case V:
        Log.v(tag, message);
        break;
      case D:
        Log.d(tag, message);
        break;
      case I:
        Log.i(tag, message);
        break;
      case W:
        Log.w(tag, message);
        break;
      case E:
        Log.e(tag, message);
        break;
    }
  }
}

@@ -101,16 +101,51 @@
 .Chop;%0A%0A
+import javax.annotation.Nullable;%0A%0A
 public c
@@ -190,16 +190,192 @@
 Tree %7B%0A%0A
+  private final @Nullable String mTagPrefix;%0A%0A  public AndroidDebugTree() %7B%0A    this(null);%0A  %7D%0A%0A  public AndroidDebugTree(String tagPrefix) %7B%0A    mTagPrefix = tagPrefix;%0A  %7D%0A%0A
   @Overr
@@ -529,24 +529,107 @@
  message) %7B%0A
+    final String formattedTag = mTagPrefix == null ? tag : mTagPrefix.concat(tag);%0A
     switch (
@@ -665,17 +665,26 @@
   Log.v(
-t
+formattedT
 ag, mess
@@ -732,17 +732,26 @@
   Log.d(
-t
+formattedT
 ag, mess
@@ -799,17 +799,26 @@
   Log.i(
-t
+formattedT
 ag, mess
@@ -866,17 +866,26 @@
   Log.w(
-t
+formattedT
 ag, mess
@@ -933,17 +933,26 @@
   Log.e(
-t
+formattedT
 ag, mess

add optional tag prefix to AndroidDebugTree. This module is currently missing tests, but it looks like google has added some niceties since I las looked. Will update soon.