fix broken files after faulty update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user