Skip to content

refactor: unify treeland logging category system#1001

Merged
zccrs merged 2 commits into
linuxdeepin:masterfrom
deepin-wm:refactor/treeland-logging-categories
Jun 18, 2026
Merged

refactor: unify treeland logging category system#1001
zccrs merged 2 commits into
linuxdeepin:masterfrom
deepin-wm:refactor/treeland-logging-categories

Conversation

@deepin-wm

Copy link
Copy Markdown
Contributor

Summary

Unify treeland logging category system following Qt convention.

Changes

  1. Rename category variables from treelandXxx to lcTlXxx following Qt convention
  2. Reorganize string IDs under treeland.* hierarchy (e.g. treeland.core, treeland.input)
  3. Move scattered Q_LOGGING_CATEGORY definitions into treelandlogging.h/cpp
  4. Migrate raw qDebug/qWarning/qCritical calls to categorized qCDebug/qCWarning/qCCritical
  5. Remove duplicate category in gestures.cpp (qLcGestures merged into lcTlGestures)
  6. Fix inconsistent string IDs (daemon.shortcut -> treeland.shortcut.daemon)

Testing

  • Verify logging output still works correctly with existing category filters
  • Test that QT_LOGGING_RULES environment variable filters work as expected
  • Verify no regression in debug/warning/critical message output

Related: #990

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @deepin-wm, your pull request is larger than the review limit of 150000 diff characters

@deepin-wm deepin-wm force-pushed the refactor/treeland-logging-categories branch 2 times, most recently from 4029e4f to 7eac6db Compare June 17, 2026 04:21
1. Rename category variables from treelandXxx to lcTlXxx following Qt convention
2. Reorganize string IDs under treeland.* hierarchy (e.g. treeland.core, treeland.input)
3. Move scattered Q_LOGGING_CATEGORY definitions into treelandlogging.h/cpp
4. Migrate raw qDebug/qWarning/qCritical calls to categorized qCDebug/qCWarning/qCCritical
5. Remove duplicate category in gestures.cpp (qLcGestures merged into lcTlGestures)
6. Fix inconsistent string IDs (daemon.shortcut -> treeland.shortcut.daemon)

Log: Unified treeland logging categories with consistent naming and hierarchy

Influence:
1. Verify logging output still works correctly with existing category filters
2. Test that QT_LOGGING_RULES environment variable filters work as expected
3. Verify no regression in debug/warning/critical message output

refactor: 统一 treeland 日志分类体系

1. 将分类变量名从 treelandXxx 重命名为 lcTlXxx,遵循 Qt 命名惯例
2. 重新组织字符串 ID 为 treeland.* 层级(如 treeland.core, treeland.input)
3. 将散落的 Q_LOGGING_CATEGORY 定义移入 treelandlogging.h/cpp
4. 将原始 qDebug/qWarning/qCritical 调用迁移为分类 qCDebug/qCWarning/qCCritical
5. 移除 gestures.cpp 中的重复分类(qLcGestures 合并至 lcTlGestures)
6. 修复不一致的字符串 ID(daemon.shortcut -> treeland.shortcut.daemon)

Log: 统一 treeland 日志分类命名和层级体系

Influence:
1. 验证日志输出在现有分类过滤器下仍正常工作
2. 测试 QT_LOGGING_RULES 环境变量过滤功能
3. 验证 debug/warning/critical 消息输出无回归

Fixes: linuxdeepin#990
@deepin-wm deepin-wm force-pushed the refactor/treeland-logging-categories branch from 7eac6db to 3ac6977 Compare June 17, 2026 04:32
@deepin-bot

deepin-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 0.8.11
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #999

@deepin-wm deepin-wm force-pushed the refactor/treeland-logging-categories branch from a72fea8 to 9cf1125 Compare June 17, 2026 10:42
1. Rename category variables from treelandXxx to lcTlXxx following Qt convention
2. Reorganize string IDs under treeland.* hierarchy (e.g. treeland.core, treeland.input)
3. Move scattered Q_LOGGING_CATEGORY definitions into treelandlogging.h/cpp
4. Migrate raw qDebug/qWarning/qCritical calls to categorized qCDebug/qCWarning/qCCritical
5. Remove duplicate category in gestures.cpp (qLcGestures merged into lcTlGestures)
6. Fix inconsistent string IDs (daemon.shortcut -> treeland.shortcut.daemon)
7. Add local logging categories for standalone binaries: lcXwaylandHelper, lcSdSocket

Log: Unified treeland logging categories with consistent naming and hierarchy

Influence:
1. Verify logging output still works correctly with existing category filters
2. Test that QT_LOGGING_RULES environment variable filters work as expected
3. Verify no regression in debug/warning/critical message output
4. Test xwayland helper and systemd-socket helper logging output

refactor: 统一 treeland 日志分类体系

1. 将分类变量名从 treelandXxx 重命名为 lcTlXxx,遵循 Qt 命名惯例
2. 重新组织字符串 ID 为 treeland.* 层级(如 treeland.core, treeland.input)
3. 将散落的 Q_LOGGING_CATEGORY 定义移入 treelandlogging.h/cpp
4. 将原始 qDebug/qWarning/qCritical 调用迁移为分类 qCDebug/qCWarning/qCCritical
5. 移除 gestures.cpp 中的重复分类(qLcGestures 合并至 lcTlGestures)
6. 修复不一致的字符串 ID(daemon.shortcut -> treeland.shortcut.daemon)
7. 为独立二进制文件添加本地日志分类:lcXwaylandHelper、lcSdSocket

Log: 统一 treeland 日志分类命名和层级体系

Influence:
1. 验证日志输出在现有分类过滤器下仍正常工作
2. 测试 QT_LOGGING_RULES 环境变量过滤功能
3. 验证 debug/warning/critical 消息输出无回归
4. 测试 xwayland 辅助工具和 systemd-socket 辅助工具的日志输出

Fixes: linuxdeepin#990
@deepin-wm deepin-wm force-pushed the refactor/treeland-logging-categories branch from 9cf1125 to 75e1efc Compare June 17, 2026 10:48
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: deepin-wm, zccrs

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@zccrs zccrs merged commit 49fd5f1 into linuxdeepin:master Jun 18, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants