Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Remove separated core log level
Browse files Browse the repository at this point in the history
  • Loading branch information
mawildoer committed Nov 6, 2024
1 parent 0f4d2fd commit cb927d6
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/faebryk/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,21 +0,0 @@
import logging
from enum import StrEnum

from faebryk.libs.util import ConfigFlagEnum

logger = logging.getLogger(__name__)


class LogLevel(StrEnum):
CRITICAL = "CRITICAL"
FATAL = "FATAL"
ERROR = "ERROR"
WARN = "WARN"
WARNING = "WARNING"
INFO = "INFO"
DEBUG = "DEBUG"
NOTSET = "NOTSET"


log_level = ConfigFlagEnum(LogLevel, "CORE_LOG_LEVEL", LogLevel.INFO)
logger.setLevel(logging.getLevelNamesMapping()[log_level.get()])

0 comments on commit cb927d6

Please sign in to comment.