mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +01:00
include thread id in logs
This commit is contained in:
parent
5c762466aa
commit
6a4a0a8775
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
package org.eehouse.android.xw4;
|
package org.eehouse.android.xw4;
|
||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import java.lang.Thread;
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
|
|
||||||
public class Utils {
|
public class Utils {
|
||||||
|
@ -10,7 +11,8 @@ public class Utils {
|
||||||
private Utils() {}
|
private Utils() {}
|
||||||
|
|
||||||
public static void logf( String format ) {
|
public static void logf( String format ) {
|
||||||
Log.d( TAG, format );
|
long id = Thread.currentThread().getId();
|
||||||
|
Log.d( TAG, id + ": " + format );
|
||||||
} // logf
|
} // logf
|
||||||
|
|
||||||
public static void logf( String format, Object[] args ) {
|
public static void logf( String format, Object[] args ) {
|
||||||
|
|
Loading…
Reference in a new issue