언어

Log.Debug Method

Definition

Overloads

Name Description
Debug(String, String)

Send a #DEBUG log message.

Debug(String, Throwable, String)

Sends a Debug log message with an associated Throwable.

Debug(String, String, Object[])

Sends a Debug log message using a composite format string.

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

Sends a Debug log message using a composite format string, with an associated Throwable.

Debug(String, String)

Send a #DEBUG log message.

[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

Parameters

tag
String

Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.

msg
String

The message you would like logged.

Returns

A positive value if the message was loggable (see #isLoggable).

Attributes

Remarks

Send a #DEBUG log message.

Java documentation for android.util.Log.d(java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Debug(String, Throwable, String)

Sends a Debug log message with an associated Throwable.

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

Parameters

tag
String

Used to identify the source of a log message.

tr
Throwable

An exception to log.

msg
String

The message to log.

Returns

The number of bytes written.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Debug(String, String, Object[])

Sends a Debug log message using a composite format string.

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

Parameters

tag
String

Used to identify the source of a log message.

format
String

A composite format string.

args
Object[]

An object array that contains zero or more objects to format.

Returns

The number of bytes written.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

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

Sends a Debug log message using a composite format string, with an associated 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

Parameters

tag
String

Used to identify the source of a log message.

tr
Throwable

An exception to log.

format
String

A composite format string.

args
Object[]

An object array that contains zero or more objects to format.

Returns

The number of bytes written.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to