Allows users to implement their own Logging extension.
More...
#include <ILoggingImplementation.h>
Allows users to implement their own Logging extension.
◆ CloseAll()
virtual void OpenTestSystem::Otx::Runtime::Api::Custom::ILoggingImplementation::CloseAll |
( |
std::shared_ptr< IRuntimeContext > |
runtimeContext | ) |
|
|
pure virtual |
The log file related to the IRuntimeContext should be closed
- Parameters
-
runtimeContext | The related runtime context. |
◆ SetLogLevel()
virtual void OpenTestSystem::Otx::Runtime::Api::Custom::ILoggingImplementation::SetLogLevel |
( |
std::shared_ptr< IRuntimeContext > |
runtimeContext, |
|
|
LogLevels |
level |
|
) |
| |
|
pure virtual |
Invoked when a SetLogLevel occurs in OTX-Runtime.
- Parameters
-
runtimeContext | The related runtime context. |
level | One of LogLevels. The LogLevels = {ALL|TRACE|DEBUG|INFO|WARN|ERROR|FATAL|OFF}. |
◆ WriteLog()
virtual void OpenTestSystem::Otx::Runtime::Api::Custom::ILoggingImplementation::WriteLog |
( |
std::shared_ptr< IRuntimeContext > |
runtimeContext, |
|
|
std::string |
writeLogInfo, |
|
|
SeverityLevels |
level, |
|
|
std::string |
target, |
|
|
std::string |
message |
|
) |
| |
|
pure virtual |
Invoked when a WriteLog occurs in OTX-Runtime.
- Parameters
-
runtimeContext | The related runtime context. |
writeLogInfo | Additional information consits of Project, Package, Document and Procedure. Format: Project:Package:Document:Procedure. |
level | One of SeverityLevels. The SeverityLevels = {TRACE|DEBUG|INFO|WARN|ERROR|FATAL}. |
target | Target is a file path where the log will be written. |
message | Message will be written to the log file. |
The documentation for this class was generated from the following file: