To make it short: I want to write to the
systemd journal from a script.
This doesn't work:
printf "%s\n%s\n%s\n" CODE_FILE=/etc/zsh/zprofile CODE_LINE=31 MESSAGE="could not read /etc/dircolors" | logger --journald
When I execute that exact code (or any other variant with print, etc.), nothing happens in the journal.
journalctl like this:
journalctl --full --all --no-pager -n 10
What is wrong here?