Language

ILog.IsWarnEnabled Property

Definition

Gets whether warn logging is enabled by the underlying logger.

public bool IsWarnEnabled { [Android.Runtime.Register("isWarnEnabled", "()Z", "GetIsWarnEnabledHandler:Org.Apache.Commons.Logging.ILogInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("isWarnEnabled", "()Z", "GetIsWarnEnabledHandler:Org.Apache.Commons.Logging.ILogInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.IsWarnEnabled : bool

Property Value

true if warn logging is enabled; otherwise, false.

Attributes

Remarks

Read this property before an expensive operation, such as string concatenation, to prepare a Warn message only when warn logging is enabled.

Applies to