diff --git a/bind/java/Seq.java b/bind/java/Seq.java index e9550c8..1dee810 100644 --- a/bind/java/Seq.java +++ b/bind/java/Seq.java @@ -6,16 +6,18 @@ package go; import android.app.Application; import android.content.Context; -import android.util.Log; import android.util.SparseArray; import android.util.SparseIntArray; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; +import java.util.logging.Logger; // Seq is a sequence of machine-dependent encoded values. // Used by automatically generated language bindings to talk to Go. public class Seq { + private static Logger log = Logger.getLogger("GoSeq"); + static { // Look for the shim class auto-generated by gomobile bind. // Its only purpose is to call System.loadLibrary. @@ -23,7 +25,7 @@ public class Seq { Class.forName("go.LoadJNI"); } catch (ClassNotFoundException e) { // Ignore, assume the user will load JNI for it. - Log.w("GoSeq", "LoadJNI class not found"); + log.warning("LoadJNI class not found"); } try { @@ -33,7 +35,7 @@ public class Seq { setContext(ctx); } catch (Exception e) { - Log.w("GoSeq", "Global context not found:" + e); + log.warning("Global context not found: " + e); } initSeq(); @@ -254,7 +256,7 @@ public class Seq { if (refnum <= 0) { // We don't keep track of the Go object. // This must not happen. - Log.wtf("GoSeq", "dec request for Go object "+ refnum); + log.severe("dec request for Go object "+ refnum); return; } // Java objects are removed on request of Go.