mirror of
https://github.com/KDE/kde-linux.git
synced 2026-04-29 10:55:12 -04:00
Improve logging defaults
- Cap default log file space usage at 500 MB, down from 4 GB (no normal person cares about having this many logs more than their own files) - Don't log spammy debug and info messages in Qt software by default - Wrap long lines in `journalctl` output so you can actually see them, and copy them for debugging elsewhere
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2026 Nate Graham <nate@kde.org>
|
||||
|
||||
# Precious disk space is for user files; cap max log size to something reasonable
|
||||
SystemMaxUse=500M
|
||||
12
mkosi.extra/etc/xdg/QtProject/qtlogging.ini
Normal file
12
mkosi.extra/etc/xdg/QtProject/qtlogging.ini
Normal file
@@ -0,0 +1,12 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2026 Nate Graham <nate@kde.org>
|
||||
|
||||
# Don't log spammy debug and info messages by default
|
||||
[Rules]
|
||||
|
||||
default=true
|
||||
|
||||
*.debug=false
|
||||
*.info=false
|
||||
*.warning=true
|
||||
*.critical=true
|
||||
@@ -89,3 +89,7 @@ alias grep='grep --color=auto'
|
||||
alias la='ls -A'
|
||||
alias ll='ls -l'
|
||||
alias lla='ls -lA'
|
||||
|
||||
# Wrap journal logs viewed in terminal rather than truncating; friendlier for reading
|
||||
# and copying
|
||||
export SYSTEMD_LESS=FRXMK
|
||||
|
||||
Reference in New Issue
Block a user