Skip to content

/AWS1/CL_LMDLOGGINGCONFIG

The function's Amazon CloudWatch Logs configuration settings.

CONSTRUCTOR

IMPORTING

Optional arguments:

IV_LOGFORMAT TYPE /AWS1/LMDLOGFORMAT /AWS1/LMDLOGFORMAT

The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.

IV_APPLICATIONLOGLEVEL TYPE /AWS1/LMDAPPLICATIONLOGLEVEL /AWS1/LMDAPPLICATIONLOGLEVEL

Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE is the highest level and FATAL is the lowest.

IV_SYSTEMLOGLEVEL TYPE /AWS1/LMDSYSTEMLOGLEVEL /AWS1/LMDSYSTEMLOGLEVEL

Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest.

IV_LOGGROUP TYPE /AWS1/LMDLOGGROUP /AWS1/LMDLOGGROUP

The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named /aws/lambda/. To use a different log group, enter an existing log group or enter a new log group name.


Queryable Attributes

LogFormat

The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.

Accessible with the following methods

Method Description
GET_LOGFORMAT() Getter for LOGFORMAT, with configurable default
ASK_LOGFORMAT() Getter for LOGFORMAT w/ exceptions if field has no value
HAS_LOGFORMAT() Determine if LOGFORMAT has a value

ApplicationLogLevel

Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE is the highest level and FATAL is the lowest.

Accessible with the following methods

Method Description
GET_APPLICATIONLOGLEVEL() Getter for APPLICATIONLOGLEVEL, with configurable default
ASK_APPLICATIONLOGLEVEL() Getter for APPLICATIONLOGLEVEL w/ exceptions if field has no
HAS_APPLICATIONLOGLEVEL() Determine if APPLICATIONLOGLEVEL has a value

SystemLogLevel

Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest.

Accessible with the following methods

Method Description
GET_SYSTEMLOGLEVEL() Getter for SYSTEMLOGLEVEL, with configurable default
ASK_SYSTEMLOGLEVEL() Getter for SYSTEMLOGLEVEL w/ exceptions if field has no valu
HAS_SYSTEMLOGLEVEL() Determine if SYSTEMLOGLEVEL has a value

LogGroup

The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named /aws/lambda/. To use a different log group, enter an existing log group or enter a new log group name.

Accessible with the following methods

Method Description
GET_LOGGROUP() Getter for LOGGROUP, with configurable default
ASK_LOGGROUP() Getter for LOGGROUP w/ exceptions if field has no value
HAS_LOGGROUP() Determine if LOGGROUP has a value