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:
Nate Graham
2026-03-08 09:30:40 -06:00
parent 6dae4285b8
commit 44b02eae7e
3 changed files with 21 additions and 0 deletions

View File

@@ -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

View 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

View File

@@ -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