mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-17 09:25:32 +00:00
19 lines
506 B
Plaintext
19 lines
506 B
Plaintext
# logger
|
|
# Interact with syslog server
|
|
|
|
# log "hi there" to syslog with priority 'notice' and facility 'user'
|
|
echo "hi there" | logger
|
|
|
|
# send <file> to syslog with <facility> and <priority>
|
|
logger -p <facility>.<level> -f <file>
|
|
|
|
# Levels (priorities):
|
|
# emerg alert crit err warning notice info debug
|
|
#
|
|
# Facilities:
|
|
# 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)
|
|
|