Enum AWSLambdaLoggerConfigurationProperty
- java.lang.Object
-
- java.lang.Enum<AWSLambdaLoggerConfigurationProperty>
-
- io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerConfigurationProperty
-
- All Implemented Interfaces:
Serializable
,Comparable<AWSLambdaLoggerConfigurationProperty>
public enum AWSLambdaLoggerConfigurationProperty extends Enum<AWSLambdaLoggerConfigurationProperty>
The configuration properties and environment variables.- See Also:
AWSLambdaLoggerFactory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DateTimeFormat
dateTimeFormat - The date and time format to be used in the output messages.DefaultLogLevel
defaultLogLevel - Default log level for all instances of LambdaLogger.LevelInBrackets
levelInBrackets - Should the level string be output in brackets? Defaults tofalse
.LogLevel
log.a.b.c - Logging detail level for a LambdaLogger instance named.LogLevelSeparator
logLevelSeparator - Customize the level separator.MarkerSeparator
markerSeparator - Customize the marker separator.RequestId
requestId - Set the context name of AWS request ID.ShowDateTime
showDateTime - Set totrue
if you want the current date and time to be included in output messages.ShowLogName
showLogName - Set totrue
if you want the Logger instance name to be included in output messages.ShowShortLogName
showShortLogName - Set totrue
if you want the last component of the name to be included in output messages.ShowThreadId
showThreadId - If you would like to output the current thread id, then set totrue
.ShowThreadName
showThreadName - Set totrue
if you want to output the current thread name.
-
Field Summary
Fields Modifier and Type Field Description String
defaultValue
Default value of the property.String
propertyName
Property name.String
variableName
Environment variable name.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AWSLambdaLoggerConfigurationProperty
valueOf(String name)
Returns the enum constant of this type with the specified name.static AWSLambdaLoggerConfigurationProperty[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DateTimeFormat
public static final AWSLambdaLoggerConfigurationProperty DateTimeFormat
dateTimeFormat - The date and time format to be used in the output messages. The pattern describing the date and time format is defined bySimpleDateFormat
.If the format is not specified or is invalid, the number of milliseconds since start up will be output.
The environment variable is LOG_DATE_TIME_FORMAT.
-
DefaultLogLevel
public static final AWSLambdaLoggerConfigurationProperty DefaultLogLevel
defaultLogLevel - Default log level for all instances of LambdaLogger. Must be one of (trace, debug, info, warn, error), a value is case-insensitive. If not specified, defaults to info.The environment variable is LOG_DEFAULT_LEVEL.
-
LevelInBrackets
public static final AWSLambdaLoggerConfigurationProperty LevelInBrackets
levelInBrackets - Should the level string be output in brackets? Defaults tofalse
.The environment variable is LOG_LEVEL_IN_BRACKETS.
-
LogLevel
public static final AWSLambdaLoggerConfigurationProperty LogLevel
log.a.b.c - Logging detail level for a LambdaLogger instance named. a.b.c
-
LogLevelSeparator
public static final AWSLambdaLoggerConfigurationProperty LogLevelSeparator
logLevelSeparator - Customize the level separator.The environment variable is LOG_LEVEL_SEPARATOR
-
MarkerSeparator
public static final AWSLambdaLoggerConfigurationProperty MarkerSeparator
markerSeparator - Customize the marker separator.The environment variable is LOG_MARKER_SEPARATOR
-
RequestId
public static final AWSLambdaLoggerConfigurationProperty RequestId
requestId - Set the context name of AWS request ID. Defaults toAWS_REQUEST_ID
.The environment variable is LOG_AWS_REQUEST_ID.
-
ShowDateTime
public static final AWSLambdaLoggerConfigurationProperty ShowDateTime
showDateTime - Set totrue
if you want the current date and time to be included in output messages. Defaults tofalse
.The environment variable is LOG_SHOW_DATE_TIME.
-
ShowLogName
public static final AWSLambdaLoggerConfigurationProperty ShowLogName
showLogName - Set totrue
if you want the Logger instance name to be included in output messages. Defaults totrue
.The environment variable is LOG_SHOW_NAME.
-
ShowShortLogName
public static final AWSLambdaLoggerConfigurationProperty ShowShortLogName
showShortLogName - Set totrue
if you want the last component of the name to be included in output messages. Defaults tofalse
.The environment variable is LOG_SHOW_SHORT_NAME.
-
ShowThreadId
public static final AWSLambdaLoggerConfigurationProperty ShowThreadId
showThreadId - If you would like to output the current thread id, then set totrue
. Defaults tofalse
.The environment variable is LOG_SHOW_THREAD_ID.
-
ShowThreadName
public static final AWSLambdaLoggerConfigurationProperty ShowThreadName
showThreadName - Set totrue
if you want to output the current thread name. Defaults tofalse
.The environment variable is LOG_SHOW_THREAD_NAME.
-
-
Method Detail
-
values
public static AWSLambdaLoggerConfigurationProperty[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AWSLambdaLoggerConfigurationProperty c : AWSLambdaLoggerConfigurationProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AWSLambdaLoggerConfigurationProperty valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-