C# Class Microsoft.Legal.MatterCenter.Utility.CustomLogger

Inheritance: ICustomLogger
Afficher le fichier Open project: Microsoft/mattercenter

Méthodes publiques

Méthode Description
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.

Method Details

CustomLogger() public méthode

public CustomLogger ( IOptions logTables, IOptions generalSettings ) : System
logTables IOptions
generalSettings IOptions
Résultat System

GenerateErrorResponse() public méthode

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
Résultat Microsoft.Legal.MatterCenter.Models.ErrorResponse

LogError() public méthode

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.
Résultat Microsoft.Legal.MatterCenter.Models.ErrorResponse

MatterCenterExceptions() public méthode

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.
Résultat Microsoft.Legal.MatterCenter.Models.ErrorResponse