2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/logger

19 lines
506 B
Plaintext
Raw Normal View History

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)