C# Класс Microsoft.Legal.MatterCenter.Utility.CustomLogger

Наследование: ICustomLogger
Показать файл Открыть проект

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

Метод Описание
CustomLogger ( IOptions logTables, IOptions generalSettings ) : System
GenerateErrorResponse ( Exception ex ) : ErrorResponse

This method will generate error response that will be sent to the client

LogError ( Exception exception, string className, string methodName, string logTableName ) : ErrorResponse

Gets the line number where exception has occurred.

MatterCenterExceptions ( Exception exception, string className, string methodName, string logTableName, int lineNumber ) : ErrorResponse

Logs error message in Azure table storage or Event Viewer.

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

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

public CustomLogger ( IOptions logTables, IOptions generalSettings ) : System
logTables IOptions
generalSettings IOptions
Результат System

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

This method will generate error response that will be sent to the client
public GenerateErrorResponse ( Exception ex ) : ErrorResponse
ex System.Exception Exception object that occured
Результат Microsoft.Legal.MatterCenter.Models.ErrorResponse

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

Gets the line number where exception has occurred.
public LogError ( Exception exception, string className, string methodName, string logTableName ) : ErrorResponse
exception System.Exception Exception object
className string Class Name where exception occur
methodName string Name of the method.
logTableName string Name of the log table.
Результат Microsoft.Legal.MatterCenter.Models.ErrorResponse

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

Logs error message in Azure table storage or Event Viewer.
public MatterCenterExceptions ( Exception exception, string className, string methodName, string logTableName, int lineNumber ) : ErrorResponse
exception System.Exception Exception object
className string Class Name where exception occur
methodName string Name of the method.
logTableName string Name of the log table.
lineNumber int Line Number of the log table.
Результат Microsoft.Legal.MatterCenter.Models.ErrorResponse