core/log: add fancy logger

This commit is contained in:
outfoxxed 2024-08-02 18:48:09 -07:00
parent 533b389742
commit 46f48f2f87
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 85 additions and 4 deletions

View file

@ -22,10 +22,12 @@
#include <qtextstream.h>
#include <qtpreprocessorsupport.h>
#include "logging.hpp"
#include "plugin.hpp"
#include "rootwrapper.hpp"
int qs_main(int argc, char** argv) {
LogManager::setup();
QString configFilePath;
QString workingDirectory;
@ -330,11 +332,9 @@ int qs_main(int argc, char** argv) {
file.close();
}
qInfo() << "shell id:" << shellId;
if (printCurrent) {
qInfo() << "shell id:" << shellId;
return 0;
}
if (printCurrent) return 0;
for (auto [var, val]: envOverrides.asKeyValueRange()) {
qputenv(var.toUtf8(), val.toUtf8());