Windows Dev Center

LoggingChannel.LoggingEnabled | loggingenabled event

Raised when the logging channel is attached to a LoggingSession or other event tracing and debugging tools.

Syntax


function onLoggingEnabled(eventArgs) { /* Your code */ }
 
// addEventListener syntax
loggingChannel.addEventListener("loggingenabled", onLoggingEnabled);
loggingChannel.removeEventListener("loggingenabled", onLoggingEnabled);
 
- or -

loggingChannel.onloggingenabled = onLoggingEnabled;


Event information

Delegate TypedEventHandler<ILoggingChannel, Object>

Remarks

The LoggingEnabled event is raised when a channel is consumed by a session within the app's process, or by a kernel-mode ETW session started with a debugging or performance analysis tool.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Foundation.Diagnostics
Windows::Foundation::Diagnostics [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Foundation.Diagnostics
Windows::Foundation::Diagnostics [C++]

Metadata

Windows.winmd

See also

LoggingChannel
LoggingSession

 

 

Show:
© 2015 Microsoft