In this video, you'll learn about the logger command. Logger is a command that you can
use to write messages to your standard journaling solution. So it works with systemd journald,
it also works with rsyslog, and it's convenient if you want to write a message from a script.
Because maybe your script is generating an error condition that you want to be logged,
well, logger is what you are going to do. You can use it with the option minus p followed
by a priority to even send messages with a specific priority. Let me show you. So I'm
using logger minus pr. Hello, folks. And that should be doing it. So journalctl uppercase
G is showing me in red. Hello, folks. Now to get a little bit more detail, you might
also want to use journalctl minus pr so that you can see all errors. And there we can see
that my logger command is nicely added to it. And that's really all there is to know
about the logger command. It's very straightforward.