mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-01 21:40:24 +00:00
commit
e7d7c37a9c
31
sheets/logger
Normal file
31
sheets/logger
Normal 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>
|
Loading…
Reference in New Issue
Block a user