Spaces:
Sleeping
Sleeping
File size: 738 Bytes
3456a58 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
import logging
from rich.logging import RichHandler
FORMAT = "%(message)s"
logging.basicConfig(
level="NOTSET",
format=FORMAT,
datefmt="[%X]",
handlers=[RichHandler(rich_tracebacks=True)],
)
logger = logging.getLogger("project-v-p")
def warn(msg):
logger.warning(msg)
def info(msg):
logger.info(msg)
def debug(msg):
logger.debug(msg)
def breakPoint():
""" A quick function to pause the program for debug or analysis
take user input Y/N
if Y: break
else: continue"""
print("Breakpoint: Press Y to continue, N to exit")
user_input = input()
if user_input.lower() == "y" or user_input == "":
pass
else:
logger.info("Exiting...")
exit()
|