OpenTAP 9.27
API Reference
Public Member Functions | Properties | List of all members
OpenTap.Diagnostic.ILog Interface Reference

Log source interface. Instances of this are always created by a corresponding ILogContext. More...

Public Member Functions

void LogEvent (int EventType, string Message)
 Logs an event. More...
 
void LogEvent (int EventType, string Message, params object[] Args)
 Logs an event. More...
 
void LogEvent (int EventType, long DurationNS, string Message)
 Logs an event. More...
 
void LogEvent (int EventType, long DurationNS, string Message, params object[] Args)
 Logs an event. More...
 

Properties

string Source [get]
 Identifier name of this source.
 

Detailed Description

Log source interface. Instances of this are always created by a corresponding ILogContext.

Member Function Documentation

◆ LogEvent() [1/4]

void OpenTap.Diagnostic.ILog.LogEvent ( int  EventType,
long  DurationNS,
string  Message 
)

Logs an event.

Parameters
EventTypeEvent type constant. Typically matches System.Diagnostics.TraceEventType.
DurationNSDuration in nanoseconds of this event.
MessageMessage for the event.

◆ LogEvent() [2/4]

void OpenTap.Diagnostic.ILog.LogEvent ( int  EventType,
long  DurationNS,
string  Message,
params object[]  Args 
)

Logs an event.

Parameters
EventTypeEvent type constant. Typically matches System.Diagnostics.TraceEventType.
DurationNSDuration in nanoseconds of this event.
MessageMessage for the event. Formatted with arguments in Args.
ArgsArguments for String.Format() call.

◆ LogEvent() [3/4]

void OpenTap.Diagnostic.ILog.LogEvent ( int  EventType,
string  Message 
)

Logs an event.

Parameters
EventTypeEvent type constant. Typically matches System.Diagnostics.TraceEventType.
MessageMessage for the event.

◆ LogEvent() [4/4]

void OpenTap.Diagnostic.ILog.LogEvent ( int  EventType,
string  Message,
params object[]  Args 
)

Logs an event.

Parameters
EventTypeEvent type constant. Typically matches System.Diagnostics.TraceEventType.
MessageMessage for the event. Formatted with arguments in Args.
ArgsArguments for String.Format() call.

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