OpenTAP 9.34
API Reference
OpenTap.Diagnostic.LogFile Class Reference

A simple log listener that writes events to a binary file. More...

Inheritance diagram for OpenTap.Diagnostic.LogFile:
OpenTap.Diagnostic.ILogListener

Public Member Functions

 LogFile (Stream st)
 Initializes a new instance of the LogFile class. Logs events to a given stream.
 
void EventsLogged (IEnumerable< Event > logEvents)
 Implements the ILogListener method.
 
void Close ()
 This method must be called to close the stream.
 
void Flush ()
 Flush the current stream.
 
void Dispose ()
 Dispose method since BufferedStream implements IDisposable.
 
- Public Member Functions inherited from OpenTap.Diagnostic.ILogListener

Protected Member Functions

virtual void Dispose (bool cleanupScope)
 Dispose method since BufferedStream implements IDisposable.
 

Detailed Description

A simple log listener that writes events to a binary file.

Constructor & Destructor Documentation

◆ LogFile()

OpenTap.Diagnostic.LogFile.LogFile ( Stream st)
inline

Initializes a new instance of the LogFile class. Logs events to a given stream.

Parameters
stThe stream to use.

Member Function Documentation

◆ Dispose()

virtual void OpenTap.Diagnostic.LogFile.Dispose ( bool cleanupScope)
inlineprotectedvirtual

Dispose method since BufferedStream implements IDisposable.

Parameters
cleanupScopeIf false, cleanup native resources, if true, clean up native and managed.

◆ EventsLogged()

void OpenTap.Diagnostic.LogFile.EventsLogged ( IEnumerable< Event > logEvents)
inline

Implements the ILogListener method.

Parameters
logEventsEvents array.

Implements OpenTap.Diagnostic.ILogListener.

OpenTAP 9.34 API built Wed Jul 1 2026 09:21:15