mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-25 18:15:24 +02:00
log: add page (#6316)
This commit is contained in:
parent
705759e617
commit
cac13976b0
1 changed files with 20 additions and 0 deletions
20
pages/osx/log.md
Normal file
20
pages/osx/log.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# log
|
||||
|
||||
> View, export, and configure logging systems.
|
||||
> More information: <https://www.dssw.co.uk/reference/log.html>.
|
||||
|
||||
- Stream live system logs:
|
||||
|
||||
`log stream`
|
||||
|
||||
- Stream logs sent to `syslog` from the process with a specific PID:
|
||||
|
||||
`log stream --process {{process_id}}`
|
||||
|
||||
- Show logs sent to syslog from a process with a specific name:
|
||||
|
||||
`log show --predicate "process == '{{process_name}}'"`
|
||||
|
||||
- Export all logs to disk for the past hour:
|
||||
|
||||
`sudo log collect --last {{1h}} --output {{path/to/file.logarchive}}`
|
Loading…
Add table
Reference in a new issue