Handler.Level Property

Definition

Get the log level specifying which messages will be logged by this Handler. -or- Set the log level specifying which message levels will be logged by this Handler.

public virtual Java.Util.Logging.Level? Level { [Android.Runtime.Register("getLevel", "()Ljava/util/logging/Level;", "GetGetLevelHandler")] get; [Android.Runtime.Register("setLevel", "(Ljava/util/logging/Level;)V", "GetSetLevel_Ljava_util_logging_Level_Handler")] set; }
[<get: Android.Runtime.Register("getLevel", "()Ljava/util/logging/Level;", "GetGetLevelHandler")>]
[<set: Android.Runtime.Register("setLevel", "(Ljava/util/logging/Level;)V", "GetSetLevel_Ljava_util_logging_Level_Handler")>]
member this.Level : Java.Util.Logging.Level with get, set

Property Value

the level of messages being logged.

Attributes

Exceptions

if newLevel is null.

Remarks

Property getter documentation:

Get the log level specifying which messages will be logged by this Handler. Message levels lower than this level will be discarded.

Java documentation for java.util.logging.Handler.getLevel().

Property setter documentation:

Set the log level specifying which message levels will be logged by this Handler. Message levels lower than this value will be discarded.

The intention is to allow developers to turn on voluminous logging, but to limit the messages that are sent to certain Handlers.

Java documentation for java.util.logging.Handler.setLevel(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