2020-04-21 11:58:02 +00:00
|
|
|
# logger
|
|
|
|
# Interact with syslog server
|
|
|
|
|
|
|
|
# log "hi there" to syslog with priority 'notice' and facility 'user'
|
|
|
|
echo "hi there" | logger
|
|
|
|
|
2020-04-21 13:43:11 +00:00
|
|
|
# send <file> to syslog with <facility> and <priority>
|
|
|
|
logger -p <facility>.<level> -f <file>
|
|
|
|
|
|
|
|
# Levels (priorities):
|
|
|
|
# emerg alert crit err warning notice info debug
|
2020-04-21 11:58:02 +00:00
|
|
|
#
|
|
|
|
# Facilities:
|
2020-04-21 13:43:11 +00:00
|
|
|
# auth
|
|
|
|
# authpriv (for security information of a sensitive nature)
|
|
|
|
# cron daemon ftp lpr mail news syslog user uucp
|
|
|
|
# local0 to local7 (local7 is used for boot messages)
|
|
|
|
|