fix broken files after faulty update

This commit is contained in:
2025-01-14 08:51:58 +01:00
parent 598da9bfac
commit 997d618ff1
102 changed files with 2499 additions and 548 deletions

View File

@@ -1,11 +1,25 @@
__version__ = "1.0.0"
__author__ = "Alexander Kirchner"
import sys
from config import Config
import os
from loguru import logger as log
import sys
settings = Config("config/config.yaml")
from .utils.icon import Icon
from .logic.log import MyLogger
from .ui.userInterface import launch_gui as UI
__version__ = "0.1.0"
__author__ = "Alexander Kirchner"
if not os.path.exists("logs"):
os.mkdir("logs")
# open and close the file to create it
logger = log
logger.remove()
logger.add("logs/application_info.log", rotation="1 week", level="INFO", enqueue=True)
logger.add("logs/application_error.log", rotation="1 week", level="ERROR", enqueue=True)
logger.add("logs/application_debug.log", rotation="1 week", level="DEBUG", enqueue=True)
logger.add("logs/application.log", rotation="1 week", enqueue=True)
# logger.add(sys.stderr, format="{time} {level} {message}", level="INFO")
logger.add(sys.stdout)