C# Класс Microsoft.Protocols.TestSuites.MS_WOPI.LogsRecorder

A class is used to record the logs information.
Показать файл Открыть проект

Открытые методы

Метод Описание
AddLogs ( string logRecordName, string logMessage ) : void

A method is used to add a log record item.

CleanUpLogs ( ) : void

A method is used to clean up the existed logs .

GetAllLogs ( string logRecordName ) : string

A method is used to get all log record items' information.

LogsRecorder ( ) : System

Initializes a new instance of the LogsRecorder class.

Защищенные методы

Метод Описание
GetLogValueForSpecifiedLogRecord ( string logRecordName ) : StringBuilder

A method is used to get log values for specified log record. If the expected log record does not exist for specified log record name, this method will return null.

Описание методов

AddLogs() публичный Метод

A method is used to add a log record item.
public AddLogs ( string logRecordName, string logMessage ) : void
logRecordName string A parameter represents the log record name, it is the unique identifier for the log record. If the left this parameter as empty, the log string will be added into the record named "DefaultLogRecord".
logMessage string A parameter represents the log information will be added.
Результат void

CleanUpLogs() публичный Метод

A method is used to clean up the existed logs .
public CleanUpLogs ( ) : void
Результат void

GetAllLogs() публичный Метод

A method is used to get all log record items' information.
public GetAllLogs ( string logRecordName ) : string
logRecordName string A parameter represents the log record name, it is the unique identifier for the log record. If the left this parameter as empty, the log string of log record named "DefaultLogRecord" will be return.
Результат string

GetLogValueForSpecifiedLogRecord() защищенный Метод

A method is used to get log values for specified log record. If the expected log record does not exist for specified log record name, this method will return null.
protected GetLogValueForSpecifiedLogRecord ( string logRecordName ) : StringBuilder
logRecordName string A parameter represents the log record name, it is the unique identifier for the log record. If the left this parameter as empty, the log string of log record named "DefaultLogRecord" will be return.
Результат StringBuilder

LogsRecorder() публичный Метод

Initializes a new instance of the LogsRecorder class.
public LogsRecorder ( ) : System
Результат System