Skip to content

Commit

Permalink
Merge pull request #149 from bento-platform/feat/logging/log-level-li…
Browse files Browse the repository at this point in the history
…teral

feat(logging): add LogLevelLiteral type
  • Loading branch information
davidlougheed authored Nov 21, 2023
2 parents f1def70 + e263549 commit 6d427e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bento_lib/logging.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import logging
from typing import Literal

__all__ = [
"LogLevelLiteral",
"log_level_from_str",
]


log_level_str_to_log_level = {
LogLevelLiteral = Literal["debug", "info", "warning", "error"]


log_level_str_to_log_level: dict[str, int] = {
"debug": logging.DEBUG,
"info": logging.INFO,
"warning": logging.WARNING,
Expand Down

0 comments on commit 6d427e2

Please sign in to comment.