Udostępnij za pośrednictwem


Logger.Level Property

Definition

Get the log Level that has been specified for this Logger. -or- Set the log level specifying which message levels will be logged by this logger.

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

this Logger's level

Attributes

Remarks

Property getter documentation:

Get the log Level that has been specified for this Logger. The result may be null, which means that this logger's effective level will be inherited from its parent.

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

Property setter documentation:

Set the log level specifying which message levels will be logged by this logger. Message levels lower than this value will be discarded. The level value Level.OFF can be used to turn off logging.

If the new level is null, it means that this node should inherit its level from its nearest ancestor with a specific (non-null) level value.

Java documentation for java.util.logging.Logger.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