Class LogFormat
This field takes in 2 values either Text or JSON.
Inheritance
System.Object
LogFormat
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class LogFormat : Enum
Syntax (vb)
Public NotInheritable Class LogFormat
Inherits
Enum
Remarks
By setting this value to Text, will result in the current structure of logs format, whereas, by setting this value to JSON, Lambda will print the logs as Structured JSON Logs, with the corresponding timestamp and log level of each event. Selecting ‘JSON’ format will only allow customer’s to have different log level Application log level and the System log level.
Synopsis
Fields
JSON | Lambda structured logging in Json format. |
TEXT | Lambda Logs text format. |
value__ |
Fields
JSON
Lambda structured logging in Json format.
public const LogFormat JSON
Field Value
Type | Description |
---|---|
LogFormat |
TEXT
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |