LoggingChannel.LoggingEnabled Event
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.
Raised when the logging channel is attached to a LoggingSession or other event tracing and debugging tools.
// Register
event_token LoggingEnabled(TypedEventHandler<ILoggingChannel, IInspectable const&> const& handler) const;
// Revoke with event_token
void LoggingEnabled(event_token const* cookie) const;
// Revoke with event_revoker
LoggingChannel::LoggingEnabled_revoker LoggingEnabled(auto_revoke_t, TypedEventHandler<ILoggingChannel, IInspectable const&> const& handler) const;
public event TypedEventHandler<ILoggingChannel,object> LoggingEnabled;
function onLoggingEnabled(eventArgs) { /* Your code */ }
loggingChannel.addEventListener("loggingenabled", onLoggingEnabled);
loggingChannel.removeEventListener("loggingenabled", onLoggingEnabled);
- or -
loggingChannel.onloggingenabled = onLoggingEnabled;
Public Custom Event LoggingEnabled As TypedEventHandler(Of ILoggingChannel, Object) Implements LoggingEnabled
Event Type
TypedEventHandler<ILoggingChannel,IInspectable>
Implements
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.