Logger.IsLoggable(Level) Method

Definition

Check if a message of the given level would actually be logged by this logger.

[Android.Runtime.Register("isLoggable", "(Ljava/util/logging/Level;)Z", "GetIsLoggable_Ljava_util_logging_Level_Handler")]
public virtual bool IsLoggable (Java.Util.Logging.Level level);
[<Android.Runtime.Register("isLoggable", "(Ljava/util/logging/Level;)Z", "GetIsLoggable_Ljava_util_logging_Level_Handler")>]
abstract member IsLoggable : Java.Util.Logging.Level -> bool
override this.IsLoggable : Java.Util.Logging.Level -> bool

Parameters

level
Level

a message logging level

Returns

true if the given message level is currently being logged.

Attributes

Remarks

Check if a message of the given level would actually be logged by this logger. This check is based on the Loggers effective level, which may be inherited from its parent.

Java documentation for java.util.logging.Logger.isLoggable(java.util.logging.Level).

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