Skip to content

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

Configuring output

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.

Live viewing of logs

To stream in terminal, use sudo log stream --level=debug --predicate 'subsystem contains "io.rc2"'

Clone this wiki locally