Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As Ahmad already commented, the logs go to the systemd journal. In order to read them, first find out the systemd unit that belongs to your session (which is a systemd unit of type "scope"). Then use that session as unit for journalctl, like this:

$ systemctl list-units -t scope
UNIT                             LOAD   ACTIVE SUB     DESCRIPTION
session-5.scope                  loaded active running Session 5 of user martin
[...]
$ journalctl -b -u session-5.scope

You could create a shortcut for this in bash, like this:

alias xsession-errors='journalctl -b -u $(systemctl -t scope | awk "/user $USER\$/ { print \$1; }")'

With this alias, you can view your logs simply by typing xsession-errors.