The unified logging payload allows you to configure logging levels by Subsystem (bundle ID), Process or for the System as a whole. It also allows you to configure a different log level for persistent logs.
Also see the log(1) man page for more information about the configuration.
Keys correspond to the directories under
Only the keys for Subsystems are shown because the other types adhere to the same structure.
Configure Subsystem Logging
This dict contains one key by default called
DEFAULT-OPTIONS which is applied when no logging category is matched.
The format of this dict is as below:
|Level||dictionary||Minimum Level||Configures minimum logging level and persistence level||n/a|
|Default-Privacy-Setting||string||Sensitive Data Logging Settings||Changes how variables eg string substitutions are formatted in the log||n/a|
|TTL||dictionary||Log entry time to live by level||Changes how long a log entry will remain before being removed||n/a|
|Propagate-with-Activity||boolean||Messages attached to the activity tree||Messages are attached to the activity tree in Console and crash dumps||n/a|
Configures minimum logging level and persistence level
|Enable||string||Minimum log level enabled||The minimum log level that will be enabled. Messages sent through NSLog are at the Default level. The default value of this is inherited from the System setting.||n/a|
|Persist||string||Minimum log level to persist||The minimum log level that will be persisted. Messages sent through NSLog are at the Default level. The default value of this is inherited from the System setting.||n/a|
Sensitive Data Logging Settings
Changes how variables eg string substitutions are formatted in the log
Log entry time to live by level
Changes how long a log entry will remain before being removed
|Default||integer||Default||Default Log Level TTL in days||n/a|
|Debug||integer||Debug||Debug Log Level TTL in days||n/a|
|Info||integer||Info||Info Log Level TTL in days||n/a|
Messages attached to the activity tree
Messages are attached to the activity tree in Console and crash dumps
Category Logging Options
Default logging settings for the category specified by (CategoryName). This dictionary takes the same format as DEFAULT-OPTIONS.