public : sealed class LoggingSession : ILoggingSession, IClosable
struct winrt::Windows::Foundation::Diagnostics::LoggingSession : ILoggingSession, IClosable
public sealed class LoggingSession : ILoggingSession, IDisposable
Public NotInheritable Class LoggingSession Implements ILoggingSession, IDisposable
var loggingSession = new loggingSession(name);
Windows 10 requirements
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
Use the LoggingSession class to log messages and data to an in-memory circular buffer as your app runs. Use the SaveToFileAsync method to save the buffer to a file. You can view the log files by using the Windows Performance Toolkit (WPT) and other utilities like tracerpt.exe.
LoggingSession instances keep logged messages in memory until the SaveToFileAsync method is called. This enables on-demand saving of events until the app saves the in-memory messages.
Add LoggingChannel instances to a LoggingSession, and call LoggingSession instance methods to remove channels, dispose, and perform other operations.
LoggingSession records the most recent 260KB of events, after which it will begin overwriting older events.
You cannot have more than one session with the same name. In addition, each app is limited to 4 sessions total.
|LoggingSession(String) LoggingSession(String) LoggingSession(String) LoggingSession(String) LoggingSession(String)||
Initializes a new instance of the LoggingSession class.
|Name Name Name Name Name||
Gets the name of the logging session.
Send feedback about: