Package uk.bot_by.aws_lambda.slf4j
Class AWSLambdaLoggerConfiguration
- java.lang.Object
-
- uk.bot_by.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 DateFormatdateTimeFormat()The date and time format to be used in the output messages.booleanisLevelEnabled(Level level)Test if the logging level is enabled.booleanisLevelEnabled(Level level, Marker marker)Test if the logging level with the marker is enabled.booleanlevelInBrackets()Should the level string be output in brackets?StringlogName()The logger name.Stringname()The full logger name.StringrequestId()The request ID.booleanshowDateTime()Should the date-time or timestamp be output?booleanshowThreadId()Should the thread ID be output?booleanshowThreadName()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
-
-