Android.Util.Log.IsLoggable Method
Checks to see whether or not a log for the specified tag is loggable at the specified level.

Syntax

[Android.Runtime.Register("isLoggable", "(Ljava/lang/String;I)Z", "")]
public static bool IsLoggable (string tag, [Android.Runtime.GeneratedEnum] LogPriority level)

Parameters

tag
The tag to check.
level
The level to check.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionis thrown if the tag.length() > 23.

Remarks

Checks to see whether or not a log for the specified tag is loggable at the specified level. The default level of any tag is set to INFO. This means that any level above and including INFO will be logged. Before you make any calls to a logging method you should check to see if your tag should be logged. You can change the default level by setting a system property: 'setprop log.tag.<YOUR_LOG_TAG> <LEVEL>' Where level is either VERBOSE, DEBUG, INFO, WARN, ERROR, ASSERT, or SUPPRESS. SUPPRESS will turn off all logging for your tag. You can also create a local.prop file that with the following in it: 'log.tag.<YOUR_LOG_TAG>=<LEVEL>' and place that in /data/local.prop.

[Android Documentation]

Requirements

Namespace: Android.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1