mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
core/log: track default logging categories
Fixes a bug in fb37be7 which ignored default logging categories due to
skipping QLoggingRegistry's filter.
This commit is contained in:
parent
5d7e07508a
commit
3d594e16dd
68 changed files with 212 additions and 79 deletions
|
|
@ -36,6 +36,7 @@
|
|||
#include <wayland-util.h>
|
||||
#include <xf86drm.h>
|
||||
|
||||
#include "../../core/logcat.hpp"
|
||||
#include "../../core/stacklist.hpp"
|
||||
#include "manager.hpp"
|
||||
#include "manager_p.hpp"
|
||||
|
|
@ -44,7 +45,7 @@ namespace qs::wayland::buffer::dmabuf {
|
|||
|
||||
namespace {
|
||||
|
||||
Q_LOGGING_CATEGORY(logDmabuf, "quickshell.wayland.buffer.dmabuf", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logDmabuf, "quickshell.wayland.buffer.dmabuf", QtWarningMsg);
|
||||
|
||||
LinuxDmabufManager* MANAGER = nullptr; // NOLINT
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <qtmetamacros.h>
|
||||
#include <qvectornd.h>
|
||||
|
||||
#include "../../core/logcat.hpp"
|
||||
#include "dmabuf.hpp"
|
||||
#include "manager_p.hpp"
|
||||
#include "qsg.hpp"
|
||||
|
|
@ -18,7 +19,7 @@
|
|||
namespace qs::wayland::buffer {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(logBuffer, "quickshell.wayland.buffer", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logBuffer, "quickshell.wayland.buffer", QtWarningMsg);
|
||||
}
|
||||
|
||||
WlBuffer* WlBufferSwapchain::createBackbuffer(const WlBufferRequest& request, bool* newBuffer) {
|
||||
|
|
|
|||
|
|
@ -13,12 +13,13 @@
|
|||
#include <qsize.h>
|
||||
#include <wayland-client-protocol.h>
|
||||
|
||||
#include "../../core/logcat.hpp"
|
||||
#include "manager.hpp"
|
||||
|
||||
namespace qs::wayland::buffer::shm {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(logShm, "quickshell.wayland.buffer.shm", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logShm, "quickshell.wayland.buffer.shm", QtWarningMsg);
|
||||
}
|
||||
|
||||
bool WlShmBuffer::isCompatible(const WlBufferRequest& request) const {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <qtypes.h>
|
||||
#include <qvariant.h>
|
||||
|
||||
#include "../../../core/logcat.hpp"
|
||||
#include "../../../core/model.hpp"
|
||||
#include "../../../core/qmlscreen.hpp"
|
||||
#include "../../toplevel_management/handle.hpp"
|
||||
|
|
@ -32,8 +33,8 @@
|
|||
namespace qs::hyprland::ipc {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(logHyprlandIpc, "quickshell.hyprland.ipc", QtWarningMsg);
|
||||
Q_LOGGING_CATEGORY(logHyprlandIpcEvents, "quickshell.hyprland.ipc.events", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logHyprlandIpc, "quickshell.hyprland.ipc", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logHyprlandIpcEvents, "quickshell.hyprland.ipc.events", QtWarningMsg);
|
||||
} // namespace
|
||||
|
||||
HyprlandIpc::HyprlandIpc() {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <qwaylandclientextension.h>
|
||||
#include <wayland-hyprland-toplevel-export-v1-client-protocol.h>
|
||||
|
||||
#include "../../../core/logcat.hpp"
|
||||
#include "../../toplevel_management/handle.hpp"
|
||||
#include "../manager.hpp"
|
||||
#include "hyprland_screencopy_p.hpp"
|
||||
|
|
@ -15,7 +16,7 @@
|
|||
namespace qs::wayland::screencopy::hyprland {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(logScreencopy, "quickshell.wayland.screencopy.hyprland", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logScreencopy, "quickshell.wayland.screencopy.hyprland", QtWarningMsg);
|
||||
}
|
||||
|
||||
HyprlandScreencopyManager::HyprlandScreencopyManager(): QWaylandClientExtensionTemplate(2) {
|
||||
|
|
|
|||
|
|
@ -13,13 +13,14 @@
|
|||
#include <wayland-ext-image-copy-capture-v1-client-protocol.h>
|
||||
#include <wayland-util.h>
|
||||
|
||||
#include "../../../core/logcat.hpp"
|
||||
#include "../manager.hpp"
|
||||
#include "image_copy_capture_p.hpp"
|
||||
|
||||
namespace qs::wayland::screencopy::icc {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(logIcc, "quickshell.wayland.screencopy.icc", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logIcc, "quickshell.wayland.screencopy.icc", QtWarningMsg);
|
||||
}
|
||||
|
||||
using IccCaptureSession = QtWayland::ext_image_copy_capture_session_v1;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#include <qwaylandclientextension.h>
|
||||
#include <wayland-wlr-screencopy-unstable-v1-client-protocol.h>
|
||||
|
||||
#include "../../../core/logcat.hpp"
|
||||
#include "../../buffer/manager.hpp"
|
||||
#include "../manager.hpp"
|
||||
#include "wlr_screencopy_p.hpp"
|
||||
|
|
@ -19,7 +20,7 @@
|
|||
namespace qs::wayland::screencopy::wlr {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(logScreencopy, "quickshell.wayland.screencopy.wlr", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logScreencopy, "quickshell.wayland.screencopy.wlr", QtWarningMsg);
|
||||
}
|
||||
|
||||
WlrScreencopyManager::WlrScreencopyManager(): QWaylandClientExtensionTemplate(3) {
|
||||
|
|
|
|||
|
|
@ -7,12 +7,13 @@
|
|||
#include <qtmetamacros.h>
|
||||
#include <qwaylandclientextension.h>
|
||||
|
||||
#include "../../core/logcat.hpp"
|
||||
#include "handle.hpp"
|
||||
#include "wayland-wlr-foreign-toplevel-management-unstable-v1-client-protocol.h"
|
||||
|
||||
namespace qs::wayland::toplevel_management::impl {
|
||||
|
||||
Q_LOGGING_CATEGORY(logToplevelManagement, "quickshell.wayland.toplevelManagement", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logToplevelManagement, "quickshell.wayland.toplevelManagement", QtWarningMsg);
|
||||
|
||||
ToplevelManager::ToplevelManager(): QWaylandClientExtensionTemplate(3) { this->initialize(); }
|
||||
|
||||
|
|
|
|||
|
|
@ -6,13 +6,14 @@
|
|||
#include <qwayland-wlr-foreign-toplevel-management-unstable-v1.h>
|
||||
#include <qwaylandclientextension.h>
|
||||
|
||||
#include "../../core/logcat.hpp"
|
||||
#include "wayland-wlr-foreign-toplevel-management-unstable-v1-client-protocol.h"
|
||||
|
||||
namespace qs::wayland::toplevel_management::impl {
|
||||
|
||||
class ToplevelHandle;
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(logToplevelManagement);
|
||||
QS_DECLARE_LOGGING_CATEGORY(logToplevelManagement);
|
||||
|
||||
class ToplevelManager
|
||||
: public QWaylandClientExtensionTemplate<ToplevelManager>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue