mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +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;
|
||||
|
||||
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 ) {
|
||||
|
|
Loading…
Reference in a new issue