diff options
author | desperateCoder <echotodevnull@gmail.com> | 2018-12-10 16:23:01 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2018-12-10 16:23:01 +0300 |
commit | 5f8a5c4444fa6c55c475bae8b592b8326f608d45 (patch) | |
tree | 7741e6ff99763d84f42b5309acd5141e550f0d7e /app/src/main/java/it/niedermann/nextcloud/deck/DeckLog.java | |
parent | bd906046fc991a9c18e3bae2d6fe4e02e91d0a67 (diff) |
added DeckLog
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/DeckLog.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/DeckLog.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/DeckLog.java b/app/src/main/java/it/niedermann/nextcloud/deck/DeckLog.java new file mode 100644 index 000000000..56cf970c1 --- /dev/null +++ b/app/src/main/java/it/niedermann/nextcloud/deck/DeckLog.java @@ -0,0 +1,12 @@ +package it.niedermann.nextcloud.deck; + +import android.util.Log; + +public class DeckLog { + + public static void log(String message) { + StackTraceElement caller = Thread.currentThread().getStackTrace()[3]; + String source = caller.getMethodName()+"() ("+caller.getFileName()+":"+caller.getLineNumber()+") -> "; + Log.d(DeckConsts.DEBUG_TAG, source + message); + } +} |