@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoggingConfig extends Object implements Serializable, Cloneable, StructuredPojo
The function's Amazon CloudWatch Logs configuration settings.
| Constructor and Description |
|---|
LoggingConfig() |
| Modifier and Type | Method and Description |
|---|---|
LoggingConfig |
clone() |
boolean |
equals(Object obj) |
String |
getApplicationLogLevel()
Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
|
String |
getLogFormat()
The format in which Lambda sends your function's application and system logs to CloudWatch.
|
String |
getLogGroup()
The name of the Amazon CloudWatch log group the function sends logs to.
|
String |
getSystemLogLevel()
Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setApplicationLogLevel(String applicationLogLevel)
Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
|
void |
setLogFormat(String logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch.
|
void |
setLogGroup(String logGroup)
The name of the Amazon CloudWatch log group the function sends logs to.
|
void |
setSystemLogLevel(String systemLogLevel)
Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
|
String |
toString()
Returns a string representation of this object.
|
LoggingConfig |
withApplicationLogLevel(ApplicationLogLevel applicationLogLevel)
Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
|
LoggingConfig |
withApplicationLogLevel(String applicationLogLevel)
Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
|
LoggingConfig |
withLogFormat(LogFormat logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch.
|
LoggingConfig |
withLogFormat(String logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch.
|
LoggingConfig |
withLogGroup(String logGroup)
The name of the Amazon CloudWatch log group the function sends logs to.
|
LoggingConfig |
withSystemLogLevel(String systemLogLevel)
Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
|
LoggingConfig |
withSystemLogLevel(SystemLogLevel systemLogLevel)
Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
|
public void setLogFormat(String logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
logFormat - The format in which Lambda sends your function's application and system logs to CloudWatch. Select between
plain text and structured JSON.LogFormatpublic String getLogFormat()
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
LogFormatpublic LoggingConfig withLogFormat(String logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
logFormat - The format in which Lambda sends your function's application and system logs to CloudWatch. Select between
plain text and structured JSON.LogFormatpublic LoggingConfig withLogFormat(LogFormat logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
logFormat - The format in which Lambda sends your function's application and system logs to CloudWatch. Select between
plain text and structured JSON.LogFormatpublic void setApplicationLogLevel(String 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.
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.ApplicationLogLevelpublic String getApplicationLogLevel()
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.
TRACE is
the highest level and FATAL is the lowest.ApplicationLogLevelpublic LoggingConfig withApplicationLogLevel(String 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.
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.ApplicationLogLevelpublic LoggingConfig withApplicationLogLevel(ApplicationLogLevel 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.
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.ApplicationLogLevelpublic void setSystemLogLevel(String 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.
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.SystemLogLevelpublic String getSystemLogLevel()
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.
DEBUG is the highest
level and WARN is the lowest.SystemLogLevelpublic LoggingConfig withSystemLogLevel(String 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.
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.SystemLogLevelpublic LoggingConfig withSystemLogLevel(SystemLogLevel 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.
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.SystemLogLevelpublic void setLogGroup(String 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/<function name>. To use a different log group, enter an
existing log group or enter a new log group name.
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/<function name>. To use a different log
group, enter an existing log group or enter a new log group name.public String getLogGroup()
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/<function name>. To use a different log group, enter an
existing log group or enter a new log group name.
/aws/lambda/<function name>. To use a different log
group, enter an existing log group or enter a new log group name.public LoggingConfig withLogGroup(String 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/<function name>. To use a different log group, enter an
existing log group or enter a new log group name.
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/<function name>. To use a different log
group, enter an existing log group or enter a new log group name.public String toString()
toString in class ObjectObject.toString()public LoggingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2024. All rights reserved.