refactor: better logger

This commit is contained in:
2025-08-07 02:05:34 +02:00
parent 289db0cbd8
commit b5f0e15e5e
5 changed files with 150 additions and 50 deletions
+1 -4
View File
@@ -1,7 +1,7 @@
/*
* @Author: Uyanide pywang0608@foxmail.com
* @Date: 2025-08-05 00:37:58
* @LastEditTime: 2025-08-05 19:42:07
* @LastEditTime: 2025-08-07 01:49:07
* @Description: Entry point.
*/
#include <qapplication.h>
@@ -12,11 +12,8 @@
#include <QTextStream>
#include "config.h"
#include "logger.h"
#include "main_window.h"
QTextStream GeneralLogger::g_logStream(stderr);
static QString getConfigDir() {
auto configDir = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
if (configDir.isEmpty()) {