mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 22:46:30 +02:00
Add enums.py
This commit is contained in:
parent
a7fa332d36
commit
5b2eeee547
4 changed files with 33 additions and 28 deletions
|
@ -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)"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue