OpenTAP 9.27
API Reference
Public Member Functions | Protected Member Functions | List of all members
OpenTap.Diagnostic.BinaryLog Class Reference

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

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

Public Member Functions

 BinaryLog (Stream st)
 Initializes a new instance of the BinaryLog class. Logs events to a given stream. More...
 
void Close ()
 Method that must be called to properly close the stream.

 
void Flush ()
 Flushes the messages from the listener.

 
void EventsLogged (IEnumerable< Event > logEvents)
 Logs the events.
More...
 
void Dispose ()
 Resets and releases resources for this unmanaged class
 

Protected Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ BinaryLog()

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

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

Parameters
stThe stream to use.

Member Function Documentation

◆ Dispose()

virtual void OpenTap.Diagnostic.BinaryLog.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.BinaryLog.EventsLogged ( IEnumerable< Event logEvents)
inline

Logs the events.

Parameters
logEventsList of events to log.

Implements OpenTap.Diagnostic.ILogListener.

OpenTAP 9.27 API built Wed Nov 27 2024 13:14:46