LoggingChannel.LogEvent 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions) |
记录具有指定名称、字段、级别和选项的事件。 |
LogEvent(String, LoggingFields, LoggingLevel) |
记录具有指定名称、字段和级别的事件。 |
LogEvent(String, LoggingFields) |
记录具有指定名称和字段的事件。 |
LogEvent(String) |
记录具有指定名称的事件。 |
LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)
记录具有指定名称、字段、级别和选项的事件。
public:
virtual void LogEvent(Platform::String ^ eventName, LoggingFields ^ fields, LoggingLevel level, LoggingOptions ^ options) = LogEvent;
/// [Windows.Foundation.Metadata.Overload("LogEventWithFieldsAndOptions")]
void LogEvent(winrt::hstring const& eventName, LoggingFields const& fields, LoggingLevel const& level, LoggingOptions const& options);
[Windows.Foundation.Metadata.Overload("LogEventWithFieldsAndOptions")]
public void LogEvent(string eventName, LoggingFields fields, LoggingLevel level, LoggingOptions options);
function logEvent(eventName, fields, level, options)
Public Sub LogEvent (eventName As String, fields As LoggingFields, level As LoggingLevel, options As LoggingOptions)
参数
- eventName
-
String
Platform::String
winrt::hstring
此事件的名称。
- fields
- LoggingFields
此事件的字段。 可以为 null。
- level
- LoggingLevel
此事件的详细信息级别。
- options
- LoggingOptions
此事件的选项。 传递 null 以使用默认选项。 这些选项适用于高级方案。 默认值设计为适用于大多数事件。
实现
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(System.String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel,Windows.Foundation.Diagnostics.LoggingOptions)
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(Platform::String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel,Windows.Foundation.Diagnostics.LoggingOptions)
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(winrt::hstring,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel,Windows.Foundation.Diagnostics.LoggingOptions)
- 属性
另请参阅
适用于
LogEvent(String, LoggingFields, LoggingLevel)
记录具有指定名称、字段和级别的事件。
public:
virtual void LogEvent(Platform::String ^ eventName, LoggingFields ^ fields, LoggingLevel level) = LogEvent;
/// [Windows.Foundation.Metadata.Overload("LogEventWithFieldsAndLevel")]
void LogEvent(winrt::hstring const& eventName, LoggingFields const& fields, LoggingLevel const& level);
[Windows.Foundation.Metadata.Overload("LogEventWithFieldsAndLevel")]
public void LogEvent(string eventName, LoggingFields fields, LoggingLevel level);
function logEvent(eventName, fields, level)
Public Sub LogEvent (eventName As String, fields As LoggingFields, level As LoggingLevel)
参数
- eventName
-
String
Platform::String
winrt::hstring
此事件的名称。
- fields
- LoggingFields
此事件的字段。 可以为 null。
- level
- LoggingLevel
此事件的详细信息级别。
实现
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(System.String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel)
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(Platform::String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel)
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(winrt::hstring,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel)
- 属性
另请参阅
- LogEvent(String)
- LogEvent(String, LoggingFields)
- LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)
适用于
LogEvent(String, LoggingFields)
记录具有指定名称和字段的事件。
public:
virtual void LogEvent(Platform::String ^ eventName, LoggingFields ^ fields) = LogEvent;
/// [Windows.Foundation.Metadata.Overload("LogEventWithFields")]
void LogEvent(winrt::hstring const& eventName, LoggingFields const& fields);
[Windows.Foundation.Metadata.Overload("LogEventWithFields")]
public void LogEvent(string eventName, LoggingFields fields);
function logEvent(eventName, fields)
Public Sub LogEvent (eventName As String, fields As LoggingFields)
参数
- eventName
-
String
Platform::String
winrt::hstring
此事件的名称。
- fields
- LoggingFields
此事件的字段。 可以为 null。
实现
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(System.String,Windows.Foundation.Diagnostics.LoggingFields)
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(Platform::String,Windows.Foundation.Diagnostics.LoggingFields)
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(winrt::hstring,Windows.Foundation.Diagnostics.LoggingFields)
- 属性
另请参阅
- LogEvent(String)
- LogEvent(String, LoggingFields, LoggingLevel)
- LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)
适用于
LogEvent(String)
记录具有指定名称的事件。
public:
virtual void LogEvent(Platform::String ^ eventName) = LogEvent;
/// [Windows.Foundation.Metadata.Overload("LogEvent")]
void LogEvent(winrt::hstring const& eventName);
[Windows.Foundation.Metadata.Overload("LogEvent")]
public void LogEvent(string eventName);
function logEvent(eventName)
Public Sub LogEvent (eventName As String)
参数
- eventName
-
String
Platform::String
winrt::hstring
此事件的名称。
实现
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(System.String)
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(Platform::String)
M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(winrt::hstring)
- 属性
另请参阅
- LogEvent(String, LoggingFields)
- LogEvent(String, LoggingFields, LoggingLevel)
- LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)