Sprache

Log.Wtf Method

Definition

Overloads

Name Description
Wtf(String, String, Object[])

Sends a Assert log message (the priority used by Log.wtf) using a composite format string.

Wtf(String, Throwable)

What a Terrible Failure: Report an exception that should never happen.

Wtf(String, String)

What a Terrible Failure: Report a condition that should never happen.

Wtf(String, Throwable, String)

Sends a Assert log message (the priority used by Log.wtf) with an associated Throwable.

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

Sends a Assert log message (the priority used by Log.wtf) using a composite format string, with an associated Throwable.

Wtf(String, String, Object[])

Sends a Assert log message (the priority used by Log.wtf) using a composite format string.

public static int Wtf(string tag, string format, params object[] args);
static member Wtf : 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

Wtf(String, Throwable)

What a Terrible Failure: Report an exception that should never happen.

[Android.Runtime.Register("wtf", "(Ljava/lang/String;Ljava/lang/Throwable;)I", "")]
public static int Wtf(string? tag, Java.Lang.Throwable tr);
[<Android.Runtime.Register("wtf", "(Ljava/lang/String;Ljava/lang/Throwable;)I", "")>]
static member Wtf : string * Java.Lang.Throwable -> int

Parameters

tag
String

Used to identify the source of a log message.

tr
Throwable

An exception to log.

Returns

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

Attributes

Remarks

What a Terrible Failure: Report an exception that should never happen. Similar to #wtf(String, String), with an exception to log.

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

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

Wtf(String, String)

What a Terrible Failure: Report a condition that should never happen.

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

Parameters

tag
String

Used to identify the source of a log message.

msg
String

The message you would like logged.

Returns

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

Attributes

Remarks

What a Terrible Failure: Report a condition that should never happen. The error will always be logged at level ASSERT with the call stack. Depending on system configuration, a report may be added to the android.os.DropBoxManager and/or the process may be terminated immediately with an error dialog.

Java documentation for android.util.Log.wtf(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

Wtf(String, Throwable, String)

Sends a Assert log message (the priority used by Log.wtf) with an associated Throwable.

public static int Wtf(string tag, Java.Lang.Throwable tr, string msg);
static member Wtf : 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

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

Sends a Assert log message (the priority used by Log.wtf) using a composite format string, with an associated Throwable.

public static int Wtf(string tag, Java.Lang.Throwable tr, string format, params object[] args);
static member Wtf : 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