add openai model to config, rework logging to use appdirs logging dir

This commit is contained in:
2025-06-03 15:28:14 +02:00
parent 9684229fc2
commit 3fbb8bbd52
22 changed files with 101 additions and 84 deletions

View File

@@ -6,11 +6,11 @@ from src.backend import AutoAdder
from .dialog_sources.parsed_titles_ui import Ui_Form
import loguru
import sys
from src import LOG_DIR
log = loguru.logger
log.remove()
log.add(sys.stdout, level="INFO")
log.add("logs/application.log", rotation="1 MB", retention="10 days")
log.add(f"{LOG_DIR}/application.log", rotation="1 MB", retention="10 days")
class ParsedTitles(QtWidgets.QWidget, Ui_Form):
def __init__(self, parent=None):