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