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

로그 파일을 저장할 때 발생합니다.

적용 대상

추가 정보