Windows Dev Center

FileLoggingSession.LogFileGenerated | logfilegenerated event

Raised when a log file is saved.

Syntax


function onLogFileGenerated(eventArgs) { /* Your code */ }
 
// addEventListener syntax
fileLoggingSession.addEventListener("logfilegenerated", onLogFileGenerated);
fileLoggingSession.removeEventListener("logfilegenerated", onLogFileGenerated);
 
- or -

fileLoggingSession.onlogfilegenerated = onLogFileGenerated;


Event information

Delegate TypedEventHandler<IFileLoggingSession, LogFileGeneratedEventArgs>

Remarks

This event is raised when the session rolls over from one log file to the next. Your event handler must save the log file if you want a copy of it because the log file will be deleted or overwritten immediately after this event returns.

This event is not raised for the last log file because the last log file does not roll over. Use CloseAndSaveToFileAsync to access the last log file.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Foundation.Diagnostics
Windows::Foundation::Diagnostics [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Foundation.Diagnostics
Windows::Foundation::Diagnostics [C++]

Metadata

Windows.winmd

See also

FileLoggingSession

 

 

Show:
© 2015 Microsoft