Log.IsLoggable(String, LogPriority) 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);
static member IsLoggable : string * Android.Util.LogPriority -> bool

Parameters

tag
String String

The tag to check.

level
LogPriority LogPriority

The level to check.

Returns

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