Install Logger On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Install logger
-
Debian
apt-get install bsdutilsClick to copy -
Ubuntu
apt-get install bsdutilsClick to copy -
Alpine OS
apk add util-linuxClick to copy -
Arch Linux
pacman -S util-linuxClick to copy -
Kali Linux
apt-get install bsdutilsClick to copy -
CentOS
yum install util-linuxClick to copy -
Fedora
dnf install util-linuxClick to copy -
Raspbian
apt-get install bsdutilsClick to copy -
macOS
brew install util-linuxClick to copy
Add messages to syslog (/var/log/syslog).
How to use logger?
Below are few example commands for logger that you can use in the terminal.
Log a message to syslog:logger messageClick to copyTake input from stdin and log to syslog:echo log_entry | loggerClick to copySend the output to a remote syslog server running at a given port. Default port is 514:echo log_entry | logger --server hostname --port portClick to copyUse a specific tag for every line logged. Default is the name of logged in user:echo log_entry | logger --tag tagClick to copyLog messages with a given priority. Default is `user.notice`. See `man logger` for all priority options:echo log_entry | logger --priority user.warningClick to copy
Installing logger command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of logger 2026 package in your OS.




