OTX-Runtime for DotNet  
OpenTestSystem.Otx.DiagManager.Common.LoggerConfig Class Reference

This class is used to setup new log file. More...

Static Public Member Functions

static void SetupTracer (EmotiveLogLevel logLevel, string traceFolder="", string fileName="")
 Setup tracer. This method can also be used to change log level. Trace Folder and File Name can only be setup once. More...
 

Detailed Description

This class is used to setup new log file.

Member Function Documentation

◆ SetupTracer()

static void OpenTestSystem.Otx.DiagManager.Common.LoggerConfig.SetupTracer ( EmotiveLogLevel  logLevel,
string  traceFolder = "",
string  fileName = "" 
)
inlinestatic

Setup tracer. This method can also be used to change log level. Trace Folder and File Name can only be setup once.

Parameters
logLevelThe log level will be set to logger.
traceFolderThe directory where the trace files are stored. LoggerConfig will uses the default directory if this param is set with empty string.
fileNameLog file's name. LoggerConfig will uses the default file name if this param is set with empty string.

Default value:
Trace folder Window : "C:\User\[Current User]\AppData\Roaming\OpenTestSystem\[Version]\DiagManager\Logging\".
File name: DiagManagerApi_Dotnet_[Date].log


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