-
Notifications
You must be signed in to change notification settings - Fork 2
Logging
Mark Lilback edited this page Nov 24, 2016
·
3 revisions
Logging is done via OSLog.
The subsystem is io.rc2.MacClient
. The current categories are
- app
- core
- session
- network
- model
- cache
- parser
- docker
- importer
Use the log
command line program. For example,
$sudo log config --mode "level: debug" --subsystem io.rc2.MacClient
$sudo log config --status --subsystem io.rc2.MacClient
Mode for 'io.rc2.MacClient' DEBUG
$sudo log config --status --subsystem io.rc2.MacClient --category parser
Mode for 'io.rc2.MacClient(parser)' DEBUG
$sudo log config --mode "level: info" --subsystem io.rc2.MacClient --category parser
$sudo log config --status --subsystem io.rc2.MacClient --category parser
Mode for 'io.rc2.MacClient(parser)' INFO
I recommend to set your default to INFO and then set specific categories to DEBUG as needed.
To stream in terminal, use sudo log stream --level=debug --predicate 'subsystem contains "io.rc2"'