IFileLoggingSession インターフェイス

定義

LoggingChannel インスタンスからログに記録されるメッセージの送信先を表します。

public interface class IFileLoggingSession : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(617038358, 65234, 16460, 137, 95, 31, 150, 153, 203, 2, 247)]
struct IFileLoggingSession : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(617038358, 65234, 16460, 137, 95, 31, 150, 153, 203, 2, 247)]
public interface IFileLoggingSession : System.IDisposable
Public Interface IFileLoggingSession
Implements IDisposable
派生
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

プロパティ

Name

ログ セッションの名前を取得します。

メソッド

AddLoggingChannel(ILoggingChannel)

現在のログ 記録セッションにログ チャネルを追加します。

AddLoggingChannel(ILoggingChannel, LoggingLevel)

指定したログ レベルのログ チャネルを現在のログ セッションに追加します。

CloseAndSaveToFileAsync()

現在のログ セッションを終了し、ファイルに保存します。

Dispose()

アンマネージ リソースの解放またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

RemoveLoggingChannel(ILoggingChannel)

指定したログ チャネルを現在のログ セッションから削除します。

イベント

LogFileGenerated

ログ ファイルが保存されるときに発生します。

適用対象

こちらもご覧ください