Compartir a través de


Log.IsLoggable(String, LogPriority) Method

Definition

Checks to see whether or not a log for the specified tag is loggable at the specified level.

[Android.Runtime.Register("isLoggable", "(Ljava/lang/String;I)Z", "")]
public static bool IsLoggable (string? tag, Android.Util.LogPriority level);
[<Android.Runtime.Register("isLoggable", "(Ljava/lang/String;I)Z", "")>]
static member IsLoggable : string * Android.Util.LogPriority -> bool

Parameters

tag
String

The tag to check.

level
LogPriority

The level to check.

Returns

Attributes

Exceptions

is thrown if the tag.length() > 23.

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