This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import timber.log.Timber; | |
public class DebugTreeWithCodeLink extends Timber.DebugTree { | |
private final ThreadLocal<String> codeLink = new ThreadLocal<>(); | |
private static final int CALL_STACK_INDEX = 5; | |
@Override | |
protected String createStackElementTag(StackTraceElement element) { | |
codeLink.set(createCodeLink(element)); |