Home | Mirror | Search

第 12 章 Logging

目錄

1. logger - a shell command interface to the syslog(3) system log module

1. logger - a shell command interface to the syslog(3) system log module

		
# logger -p local0.notice -t HOSTIDM -f /dev/idmc
# tail /var/log/messages

# logger -p local0.notice -t passwd -f /etc/passwd
# tail /var/log/syslog

# logger -p user.notice -t neo -f /etc/passwd
# tail /var/log/syslog
# tail /var/log/messages

# logger -i -s -p local3.info -t passwd -f /etc/passwd
# tail /var/log/messages
		
		
comments powered by Disqus