ILog.IsTraceEnabled 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 trace logging is enabled by the underlying logger.
public bool IsTraceEnabled { [Android.Runtime.Register("isTraceEnabled", "()Z", "GetIsTraceEnabledHandler:Org.Apache.Commons.Logging.ILogInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("isTraceEnabled", "()Z", "GetIsTraceEnabledHandler:Org.Apache.Commons.Logging.ILogInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.IsTraceEnabled : bool
Property Value
true if trace logging is enabled; otherwise, false.
- Attributes
Remarks
Read this property before an expensive operation, such as string concatenation, to prepare a Trace message only when trace logging is enabled.