Initiliazation

This commit is contained in:
2025-12-22 16:23:48 +01:00
parent 7a8b6d451d
commit b29e6179f3
165 changed files with 28070 additions and 0 deletions

18
vv1/ssh/utils/logger.py Normal file
View File

@@ -0,0 +1,18 @@
import logging
log = logging.getLogger(__name__)
class Logger:
def __init__(self):
logging.basicConfig(
format="%(levelname)s:%(asctime)s - %(message)s",
datefmt="%m/%d/%Y %I:%M:%S %p",
)
log.setLevel(logging.INFO)
form = logging.Formatter(
"%(levelname)s:%(asctime)s - %(message)s", datefmt="%m/%d/%Y %I:%M:%S %p"
)
file_handler = logging.FileHandler("angel.log")
file_handler.setFormatter(form)
log.addHandler(file_handler)