Class AWSLambdaLoggerConfiguration
- java.lang.Object
-
- io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerConfiguration
-
public class AWSLambdaLoggerConfiguration extends Object
The configuration container.- See Also:
AWSLambdaLoggerFactory
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable DateFormat
dateTimeFormat()
The date and time format to be used in the output messages.boolean
isLevelEnabled(Level level)
Test if the logging level is enabled.boolean
isLevelEnabled(Level level, Marker marker)
Test if the logging level with the marker is enabled.boolean
levelInBrackets()
Should the level string be output in brackets?String
logName()
The logger name.String
name()
The full logger name.String
requestId()
The request ID.boolean
showDateTime()
Should the date-time or timestamp be output?boolean
showThreadId()
Should the thread ID be output?boolean
showThreadName()
Should the thread name be output?
-
-
-
Method Detail
-
dateTimeFormat
@Nullable public @Nullable DateFormat 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.
- Returns:
- date and time format
- See Also:
showDateTime()
-
isLevelEnabled
public boolean isLevelEnabled(Level level)
Test if the logging level is enabled.- Parameters:
level
- logging level- Returns:
- true if this logging level is enabled
-
isLevelEnabled
public boolean isLevelEnabled(Level level, Marker marker)
Test if the logging level with the marker is enabled.- Parameters:
level
- logging levelmarker
- logging marker- Returns:
- true if this logging level with the marker is enabled
-
levelInBrackets
public boolean levelInBrackets()
Should the level string be output in brackets?- Returns:
- true if the level string should be in brackets
-
logName
public String logName()
The logger name.- Returns:
- logger name
-
name
public String name()
The full logger name.- Returns:
- full logger name
-
requestId
public String requestId()
The request ID.- Returns:
- request ID
-
showDateTime
public boolean showDateTime()
Should the date-time or timestamp be output?- Returns:
- true if date-time or timestamp be output
- See Also:
dateTimeFormat()
-
showThreadId
public boolean showThreadId()
Should the thread ID be output?- Returns:
- true if thread ID be output
-
showThreadName
public boolean showThreadName()
Should the thread name be output?- Returns:
- true if thread name be output
-
-