OpenTAP 9.25
API Reference
|
Extended ILogContext interface. More...
Public Member Functions | |
void | AddEvent (Event @event) |
Registers a new event More... | |
Public Member Functions inherited from OpenTap.Diagnostic.ILogContext | |
ILog | CreateLog (string Source) |
Creates a log source with a given source identifier. More... | |
void | RemoveLog (ILog LogSource) |
Removes a log source from the context. More... | |
void | AttachListener (ILogListener Listener) |
Attaches a log listener. | |
void | DetachListener (ILogListener Listener) |
Detaches a log listener. Automatically flushes the context. | |
bool | Flush (int TimeoutMS=0) |
Flush all events received at the time instant this method is called, but only waits a number of milliseconds. More... | |
bool | Flush (TimeSpan Timeout) |
Flush all events received at the time instant this method is called, but only waits a given duration. More... | |
Properties | |
bool | HasListeners [get] |
gets if the context has any listeners. | |
Properties inherited from OpenTap.Diagnostic.ILogContext | |
ILogTimestampProvider | Timestamper [getset] |
Timestamp method to use for all subsequent logged events. | |
bool | Async [getset] |
When true, sets the log context to an asynchronous mode (avoiding the potential synchronous mode problem of log sources returning from ILog.LogEvent(int, string) calls before the events have been processed). When false, log sources always wait until all log listeners have processed the events. | |
int | MessageBufferSize [getset] |
Maximum number of outstanding events. Only relevant for Async mode. | |
Extended ILogContext interface.
void OpenTap.Diagnostic.ILogContext2.AddEvent | ( | Event @ | event | ) |
Registers a new event
event |
OpenTAP 9.25 API built Tue Aug 6 2024 07:49:25