IFileLoggingSession 인터페이스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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 |
로그 파일을 저장할 때 발생합니다. |
적용 대상
추가 정보
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기