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)