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

Inheritance: ICustomLogger
Show file Open project: Microsoft/mattercenter

Public Methods

Method 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 method

public CustomLogger ( IOptions logTables, IOptions generalSettings ) : System
logTables IOptions
generalSettings IOptions
return System

GenerateErrorResponse() public method

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
return Microsoft.Legal.MatterCenter.Models.ErrorResponse

LogError() public method

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.
return Microsoft.Legal.MatterCenter.Models.ErrorResponse

MatterCenterExceptions() public method

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.
return Microsoft.Legal.MatterCenter.Models.ErrorResponse