IFileLoggingSession Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the destination of logged messages from LoggingChannel instances.
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
- Derived
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Properties
Name |
Gets the name of the logging session. |
Methods
AddLoggingChannel(ILoggingChannel) |
Adds a logging channel to the current logging session. |
AddLoggingChannel(ILoggingChannel, LoggingLevel) |
Adds a logging channel with the specified logging level to the current logging session. |
CloseAndSaveToFileAsync() |
Ends the current logging session and saves it to a file. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
RemoveLoggingChannel(ILoggingChannel) |
Removes the specified logging channel from the current logging session. |
Events
LogFileGenerated |
Raised when a log file is saved. |
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor