Created
October 14, 2016 12:40
-
-
Save BOOtak/45bb00f460984c7b498fb82ab0ca9742 to your computer and use it in GitHub Desktop.
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
public static void hackyLog(String msg) { | |
try { | |
throw new Exception("hack :-)"); | |
} | |
catch(Exception exception0) { | |
String[] array_string = exception0.getStackTrace()[1].getClassName().split("\\."); | |
Log.d("paranoid.me_" + array_string[array_string.length - 1], "[" + exception0.getStackTrace()[ | |
1].getMethodName() + ":" + exception0.getStackTrace()[1].getLineNumber() + "] " + | |
msg); | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment