Enum AWSLambdaLoggerConfigurationProperty

    • 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 by SimpleDateFormat.

        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 to false.

        The environment variable is LOG_LEVEL_IN_BRACKETS.

      • 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 to AWS_REQUEST_ID.

        The environment variable is LOG_AWS_REQUEST_ID.

      • ShowDateTime

        public static final AWSLambdaLoggerConfigurationProperty ShowDateTime
        showDateTime - Set to true if you want the current date and time to be included in output messages. Defaults to false.

        The environment variable is LOG_SHOW_DATE_TIME.

      • ShowLogName

        public static final AWSLambdaLoggerConfigurationProperty ShowLogName
        showLogName - Set to true if you want the Logger instance name to be included in output messages. Defaults to true.

        The environment variable is LOG_SHOW_NAME.

      • ShowShortLogName

        public static final AWSLambdaLoggerConfigurationProperty ShowShortLogName
        showShortLogName - Set to true if you want the last component of the name to be included in output messages. Defaults to false.

        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 to true. Defaults to false.

        The environment variable is LOG_SHOW_THREAD_ID.

      • ShowThreadName

        public static final AWSLambdaLoggerConfigurationProperty ShowThreadName
        showThreadName - Set to true if you want to output the current thread name. Defaults to false.

        The environment variable is LOG_SHOW_THREAD_NAME.

    • Field Detail

      • defaultValue

        public final String defaultValue
        Default value of the property.
      • propertyName

        public final String propertyName
        Property name.
      • variableName

        public final String variableName
        Environment variable 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 name
        NullPointerException - if the argument is null