diff --git a/src/rhcsa.md b/src/rhcsa.md index ac8f4d4..71317c8 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -831,3 +831,11 @@ sudo systemctl status rsyslog # Display the status of the rsyslog service sudo nano /etc/logrotate.conf # Edit the logrotate configuration file\ ``` +### logger +```bash +logger "This is a test message" # Log a message + +logger -p local0.info "This is a test message" # Log a message to the local0.info facility + +sudo tail /var/log/messages # Display the messages +```