mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-30 22:17:57 +01:00
Incorporating review suggestions
- Added /var/log/syslog at the end for clarity - Replaced tail by echo to make it generic
This commit is contained in:
parent
ddd08bc426
commit
e5d5572548
2 changed files with 10 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
# logger
|
||||
|
||||
> Add messages to syslog.
|
||||
> Add messages to syslog (/var/log/syslog).
|
||||
|
||||
- Log a message to syslog:
|
||||
|
||||
|
@ -8,16 +8,16 @@
|
|||
|
||||
- Take input from stdin and log to syslog:
|
||||
|
||||
`tail -f {{app.log}} | logger`
|
||||
`echo {{log_entry}} | logger`
|
||||
|
||||
- Send the output to a remote syslog server running at a given port. Default port is `syslog`:
|
||||
|
||||
`tail -f {{app.log}} | logger --server {{hostname}} --port {{port}}`
|
||||
`echo {{log_entry}} | logger --server {{hostname}} --port {{port}}`
|
||||
|
||||
- Use a specific tag for every line logged. Default is the name of logged in user:
|
||||
|
||||
`tail -f {{app.log}} | logger --tag {{tag}}`
|
||||
`echo {{log_entry}} | logger --tag {{tag}}`
|
||||
|
||||
- Log messages with a given priority. Default is `user.notice`. See `man logger` for all priority options:
|
||||
|
||||
`tail -f {{app.log}} | logger --priority {{user.warning}}`
|
||||
`echo {{log_entry}} | logger --priority {{user.warning}}`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# logger
|
||||
|
||||
> Add messages to syslog.
|
||||
> Add messages to syslog (/var/log/syslog).
|
||||
|
||||
- Log a message to syslog:
|
||||
|
||||
|
@ -8,16 +8,16 @@
|
|||
|
||||
- Take input from stdin and log to syslog:
|
||||
|
||||
`tail -f {{app.log}} | logger`
|
||||
`echo {{log_entry}} | logger`
|
||||
|
||||
- Send the output to a remote syslog server running at a given port. Default port is `syslog`:
|
||||
|
||||
`tail -f {{app.log}} | logger -h {{hostname}} -P {{port}}`
|
||||
`echo {{log_entry}} | logger -h {{hostname}} -P {{port}}`
|
||||
|
||||
- Use a specific tag for every line logged. Default is the name of logged in user:
|
||||
|
||||
`tail -f {{app.log}} | logger -t {{tag}}`
|
||||
`echo {{log_entry}} | logger -t {{tag}}`
|
||||
|
||||
- Log messages with a given priority. Default is `user.notice`. See `man logger` for all priority options:
|
||||
|
||||
`tail -f {{app.log}} | logger -p {{user.warning}}`
|
||||
`echo {{log_entry}} | logger -p {{user.warning}}`
|
||||
|
|
Loading…
Reference in a new issue