Compton配置时可通过以下方式记录日志:
--log-level
指定级别(如debug
),输出详细日志到终端,例如:compton --config /etc/compton.conf --log-level debug
。compton --config /etc/compton.conf > compton.log 2>&1
。/var/log/syslog
或/var/log/Xorg.0.log
,可用journalctl
或cat
命令查看,例如:journalctl -u compton.service
或 grep compton /var/log/Xorg.0.log
。COMPTON_LOG_FILE
指定日志文件路径(需配合COMPTON_DEBUG=1
启用调试),例如:export COMPTON_LOG_FILE=/tmp/compton.log && compton
。注:不同版本日志功能可能有差异,建议参考官方文档或GitHub仓库说明。