2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-01 21:40:24 +00:00

Merge pull request #105 from bvdeenen/master

logger
This commit is contained in:
Igor Chubin 2020-04-21 15:38:42 +02:00 committed by GitHub
commit e7d7c37a9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

31
sheets/logger Normal file
View File

@ -0,0 +1,31 @@
# logger
# Interact with syslog server
# log "hi there" to syslog with priority 'notice' and facility 'user'
echo "hi there" | logger
# Levels: 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
logger -p <facility>.<level> -f <file>