From 6a4a0a8775007a3cbbd3be42378580e731db67f4 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 10 Jan 2010 17:19:30 +0000 Subject: [PATCH] include thread id in logs --- .../android/XWords4/src/org/eehouse/android/xw4/Utils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java index 786a58fbe..e6c82e51e 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java @@ -2,6 +2,7 @@ package org.eehouse.android.xw4; import android.util.Log; +import java.lang.Thread; import java.text.MessageFormat; public class Utils { @@ -10,7 +11,8 @@ public class Utils { private Utils() {} public static void logf( String format ) { - Log.d( TAG, format ); + long id = Thread.currentThread().getId(); + Log.d( TAG, id + ": " + format ); } // logf public static void logf( String format, Object[] args ) {