ILog.IsErrorEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets whether error logging is enabled by the underlying logger.
public bool IsErrorEnabled { [Android.Runtime.Register("isErrorEnabled", "()Z", "GetIsErrorEnabledHandler:Org.Apache.Commons.Logging.ILogInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("isErrorEnabled", "()Z", "GetIsErrorEnabledHandler:Org.Apache.Commons.Logging.ILogInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.IsErrorEnabled : bool
Property Value
true if error logging is enabled; otherwise, false.
- Attributes
Remarks
Read this property before an expensive operation, such as string concatenation, to prepare an Error message only when error logging is enabled.