共用方式為


Handler.IsLoggable(LogRecord) Method

Definition

Check if this Handler would actually log a given LogRecord.

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

Parameters

record
LogRecord

a LogRecord

Returns

true if the LogRecord would be logged.

Attributes

Remarks

Check if this Handler would actually log a given LogRecord.

This method checks if the LogRecord has an appropriate Level and whether it satisfies any Filter. It also may make other Handler specific checks that might prevent a handler from logging the LogRecord. It will return false if the LogRecord is null.

Java documentation for java.util.logging.Handler.isLoggable(java.util.logging.LogRecord).

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