forked from quickshell/quickshell
core/log: add filesystem logger
This commit is contained in:
parent
46f48f2f87
commit
6bf4826ae7
9 changed files with 299 additions and 53 deletions
|
@ -22,12 +22,14 @@
|
|||
#include <qtextstream.h>
|
||||
#include <qtpreprocessorsupport.h>
|
||||
|
||||
#include "filelogger.hpp"
|
||||
#include "logging.hpp"
|
||||
#include "paths.hpp"
|
||||
#include "plugin.hpp"
|
||||
#include "rootwrapper.hpp"
|
||||
|
||||
int qs_main(int argc, char** argv) {
|
||||
LogManager::setup();
|
||||
LogManager::instance();
|
||||
QString configFilePath;
|
||||
QString workingDirectory;
|
||||
|
||||
|
@ -340,6 +342,8 @@ int qs_main(int argc, char** argv) {
|
|||
qputenv(var.toUtf8(), val.toUtf8());
|
||||
}
|
||||
|
||||
QsPaths::init(shellId);
|
||||
|
||||
// While the simple animation driver can lead to better animations in some cases,
|
||||
// it also can cause excessive repainting at excessively high framerates which can
|
||||
// lead to noticeable amounts of gpu usage, including overheating on some systems.
|
||||
|
@ -386,6 +390,8 @@ int qs_main(int argc, char** argv) {
|
|||
app = new QGuiApplication(argc, argv);
|
||||
}
|
||||
|
||||
FileLoggerThread::init();
|
||||
|
||||
if (debugPort != -1) {
|
||||
QQmlDebuggingEnabler::enableDebugging(true);
|
||||
auto wait = waitForDebug ? QQmlDebuggingEnabler::WaitForClient
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue