Freigeben über


ICorDebugManagedCallback::LogMessage Method

Notifies the debugger that a common language runtime (CLR) managed thread has called a method in the EventLog class to log an event.

HRESULT LogMessage (
    [in] ICorDebugAppDomain  *pAppDomain,
    [in] ICorDebugThread     *pThread,
    [in] LONG                 lLevel,
    [in] WCHAR               *pLogSwitchName,
    [in] WCHAR               *pMessage
);

Parameters

  • pAppDomain
    [in] A pointer to an ICorDebugAppDomain Interface object that represents the application domain containing the managed thread that logged the event.
  • lLevel
    [in] A value of the LoggingLevelEnum Enumeration enumeration that indicates the severity level of the descriptive message that was written to the event log.
  • pLogSwitchName
    [in] A pointer to the name of the tracing switch.
  • pMessage
    [in] A pointer to the message that was written to the event log.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

ICorDebugManagedCallback Interface