Skip to content

Commit e2dd0c4

Browse files
First commit - Adding Buffer and Config classes
1 parent 6c4ef9c commit e2dd0c4

File tree

1 file changed

+1
-4
lines changed
  • aws_lambda_powertools/logging/buffer

1 file changed

+1
-4
lines changed

aws_lambda_powertools/logging/buffer/config.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@ class LoggerBufferConfig:
88
Configuration for log buffering behavior.
99
"""
1010

11-
# Define a type alias for valid log levels
12-
LogLevelType = Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
13-
1411
# Define class-level constant for valid log levels
1512
VALID_LOG_LEVELS: list[str] = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
1613

1714
def __init__(
1815
self,
1916
max_size: int = 10240,
20-
minimum_log_level: LogLevelType = "DEBUG",
17+
minimum_log_level: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] = "DEBUG",
2118
flush_on_error: bool = True,
2219
compress: bool = False,
2320
):

0 commit comments

Comments
 (0)