updated notes
This commit is contained in:
@@ -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\
|
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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user