Add enums.py

This commit is contained in:
zandercymatics 2024-01-09 12:27:38 -07:00
parent a7fa332d36
commit 5b2eeee547
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 33 additions and 28 deletions

View file

@ -1,29 +1,10 @@
from enum import Enum
import logging
import sys
from typing import List
from registrar.utility.enums import LogCode
logger = logging.getLogger(__name__)
class LogCode(Enum):
"""Stores the desired log severity
Overview of error codes:
- 1 ERROR
- 2 WARNING
- 3 INFO
- 4 DEBUG
- 5 DEFAULT
"""
ERROR = 1
WARNING = 2
INFO = 3
DEBUG = 4
DEFAULT = 5
class TerminalColors:
"""Colors for terminal outputs
(makes reading the logs WAY easier)"""