OTX-Runtime for DotNet  
OpenTestSystem.Otx.Runtime.Api.Custom.ILoggingImplementation Interface Reference

Allows users to implement their own Logging extension. More...

Public Member Functions

void CloseAll (IRuntimeContext runtimeContext)
 The log file related to the IRuntimeContext should be closed More...
 
void SetLogLevel (IRuntimeContext runtimeContext, LogLevels level)
 Invoked when a SetLogLevel occurs in OTX-Runtime. More...
 
void WriteLog (IRuntimeContext runtimeContext, string writeLogInfo, SeverityLevels level, string target, string message)
 Invoked when a WriteLog occurs in OTX-Runtime. More...
 

Detailed Description

Allows users to implement their own Logging extension.

Member Function Documentation

◆ CloseAll()

void OpenTestSystem.Otx.Runtime.Api.Custom.ILoggingImplementation.CloseAll ( IRuntimeContext  runtimeContext)

The log file related to the IRuntimeContext should be closed

Parameters
runtimeContextThe related runtime context.

◆ SetLogLevel()

void OpenTestSystem.Otx.Runtime.Api.Custom.ILoggingImplementation.SetLogLevel ( IRuntimeContext  runtimeContext,
LogLevels  level 
)

Invoked when a SetLogLevel occurs in OTX-Runtime.

Parameters
runtimeContextThe related runtime context.
levelOne of LogLevels. The LogLevels = {OFF|FATAL|ERROR|WARN|INFO|DEBUG|TRACE|ALL}.

◆ WriteLog()

void OpenTestSystem.Otx.Runtime.Api.Custom.ILoggingImplementation.WriteLog ( IRuntimeContext  runtimeContext,
string  writeLogInfo,
SeverityLevels  level,
string  target,
string  message 
)

Invoked when a WriteLog occurs in OTX-Runtime.

Parameters
runtimeContextThe related runtime context.
writeLogInfoAdditional information consits of Project, Package, Document and Procedure. Format: Project@Package@Document@Procedure.
levelOne of SeverityLevels. The SeverityLevels = {FATAL|ERROR|WARN|INFO|DEBUG|TRACE}.
targetTarget is a file path where the log will be written.
messageMessage will be written to the log file.

The documentation for this interface was generated from the following file: