@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)
Marshalls this structured data using the given
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.LogFormat
public String getLogFormat()
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
LogFormat
public 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.LogFormat
public 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.LogFormat
public 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.ApplicationLogLevel
public 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.ApplicationLogLevel
public 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.ApplicationLogLevel
public 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.ApplicationLogLevel
public 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.SystemLogLevel
public 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.SystemLogLevel
public 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.SystemLogLevel
public 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.SystemLogLevel
public 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 Object
Object.toString()
public LoggingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.