main
py 28 lines 599 Bytes
Raw
1 # SPDX-License-Identifier: Apache-2.0
2 # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 import logging
4 from enum import Enum
5
6
7 class Color(Enum):
8 RED = "\033[91m"
9 GREEN = "\033[92m"
10 BLUE = "\033[94m"
11 PURPLE = "\033[95m"
12 CYAN = "\033[96m"
13 YELLOW = "\033[93m"
14 RESET = "\033[0m"
15
16 def __str__(self):
17 return self.value
18
19
20 TEXT_SEPARATOR = "-" * 100
21
22 # Configure the logger
23 logging.basicConfig(
24 level=logging.INFO,
25 format="%(asctime)s [%(levelname)s] - %(message)s",
26 datefmt="%d-%m-%Y %H:%M:%S",
27 )
28 logger = logging.getLogger(__name__)