feat(logs): record every operation and event in an application journal
The app kept no durable trace of what it ran: LogManager existed but was never instantiated, so only a handful of console-only qCInfo calls survived a session. Wire it up as a process-wide journal that captures each command's raw output next to UI, search, plugin and update events, and funnel every Qt log message into it, so a failure can still be diagnosed after the fact. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
7 files changed
+335
-130
No files matched your search
@@ -121,6 +121,9 @@ public:
|
||||
// Full content of /var/log/pacman.log; `error` is filled when it cannot be
|
||||
// read (file missing, no permission).
|
||||
QString readPackageLog(QString* error = nullptr) const;
|
||||
// Full content of the application's own journal (every operation and event,
|
||||
// including the raw output of the commands that ran).
|
||||
QString readAppLog(QString* error = nullptr) const;
|
||||
// Extra pacman information for the details panel (-Qi / -Si), cached per
|
||||
// package so selecting rows repeatedly does not re-spawn pacman.
|
||||
QString packageDetails(const PackageInfo& package);
|
||||
|
||||
Reference in new issue
Block a user