ICorDebugManagedCallback::LogMessage 方法

通知调试器公共语言运行时 (CLR) 托管线程调用了 EventLog 类中的方法来记录事件。

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

参数

  • pAppDomain
    [in] 一个指向 ICorDebugAppDomain 对象的指针,该对象所表示的应用程序域包含记录事件的托管线程。

  • pThread
    [in] 一个指向 ICorDebugThread 对象的指针,该对象表示托管线程。

  • lLevel
    [in] 一个 LoggingLevelEnum 枚举值,该枚举指示写入事件日志的说明性消息的严重级别。

  • pLogSwitchName
    [in] 一个指向跟踪开关的名称的指针。

  • pMessage
    [in] 一个指向写入事件日志的消息的指针。

要求

**平台:**请参见 .NET Framework 系统要求

头文件: CorDebug.idl、CorDebug.h

**库:**CorGuids.lib

**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

请参见

参考

ICorDebugManagedCallback 接口