Interface ILambdaErrorReportGenerator
The ILambdaErrorReportGenerator interface is used to create LambdaErrorReport instances.
Namespace: LambdaSharp.Logging.ErrorReports
Assembly: LambdaSharp.Logging.dll
Syntax
public interface ILambdaErrorReportGenerator
Methods
CreateReport(String, String, Exception, String, Object[])
The CreateReport(String, String, Exception, String, Object[]) method create a new LambdaErrorReport instance from the provided parameters.
Declaration
LambdaErrorReport CreateReport(string requestId, string level, Exception exception, string format = null, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | requestId | The AWS request ID. |
| System.String | level | The severity level of the error report. |
| System.Exception | exception | An optional exception instance. |
| System.String | format | An optional message. |
| System.Object[] | args | Optional arguments for the error message. |
Returns
| Type | Description |
|---|---|
| LambdaErrorReport | A new LambdaErrorReport instance. |
Remarks
See args parameter
impacts the processing of the format parameter.