語言

Log.Debug 方法

定義

多載

名稱 Description
Debug(String, String)

發送 #DEBUG 日誌訊息。

Debug(String, Throwable, String)

傳送 Debug 帶有關聯 Throwable的日誌訊息。

Debug(String, String, Object[])

Debug發送使用複合格式字串的日誌訊息。

Debug(String, Throwable, String, Object[])

以複合格式字串發送 Debug 日誌訊息,並附帶 Throwable。

Debug(String, String)

發送 #DEBUG 日誌訊息。

[Android.Runtime.Register("d", "(Ljava/lang/String;Ljava/lang/String;)I", "")]
public static int Debug(string? tag, string msg);
[<Android.Runtime.Register("d", "(Ljava/lang/String;Ljava/lang/String;)I", "")>]
static member Debug : string * string -> int

參數

tag
String

用於識別日誌訊息的來源。 它通常會標示日誌呼叫發生的類別或活動。

msg
String

你想記錄的訊息。

傳回

若訊息可記錄,則為正值(參見 #isLoggable)。

屬性

備註

發送 #DEBUG 日誌訊息。

Java 文件 android.util.Log.d(java.lang.String, java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Debug(String, Throwable, String)

傳送 Debug 帶有關聯 Throwable的日誌訊息。

public static int Debug(string tag, Java.Lang.Throwable tr, string msg);
static member Debug : string * Java.Lang.Throwable * string -> int

參數

tag
String

用於識別日誌訊息的來源。

tr
Throwable

這是伐木的例外。

msg
String

要記錄的訊息。

傳回

寫入的位元組數目。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Debug(String, String, Object[])

Debug發送使用複合格式字串的日誌訊息。

public static int Debug(string tag, string format, params object[] args);
static member Debug : string * string * obj[] -> int

參數

tag
String

用於識別日誌訊息的來源。

format
String

複合格式字串。

args
Object[]

對象陣列,其中包含要格式化的零個或多個物件。

傳回

寫入的位元組數目。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Debug(String, Throwable, String, Object[])

以複合格式字串發送 Debug 日誌訊息,並附帶 Throwable。

public static int Debug(string tag, Java.Lang.Throwable tr, string format, params object[] args);
static member Debug : string * Java.Lang.Throwable * string * obj[] -> int

參數

tag
String

用於識別日誌訊息的來源。

tr
Throwable

這是伐木的例外。

format
String

複合格式字串。

args
Object[]

對象陣列,其中包含要格式化的零個或多個物件。

傳回

寫入的位元組數目。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於