Mark Salyzyn | 2591d48 | 2016-07-07 09:24:51 -0700 | [diff] [blame] | 1 | The properties that logd and friends react to are: |
Mark Salyzyn | 7260a5c | 2014-04-21 07:41:28 -0700 | [diff] [blame] | 2 | |
| 3 | name type default description |
Sami Tolvanen | a742d10 | 2016-06-14 18:04:43 +0000 | [diff] [blame] | 4 | ro.logd.auditd bool true Enable selinux audit daemon |
Mark Salyzyn | ce80da3 | 2016-12-29 15:16:06 -0800 | [diff] [blame] | 5 | ro.logd.auditd.dmesg bool true selinux audit messages sent to dmesg. |
| 6 | ro.logd.auditd.main bool true selinux audit messages sent to main. |
| 7 | ro.logd.auditd.events bool true selinux audit messages sent to events. |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 8 | persist.logd.security bool false Enable security buffer. |
| 9 | ro.device_owner bool false Override persist.logd.security to false |
| 10 | ro.logd.kernel bool+ svelte+ Enable klogd daemon |
| 11 | ro.logd.statistics bool+ svelte+ Enable logcat -S statistics. |
Mark Salyzyn | d1f41d6 | 2016-02-09 15:49:29 -0800 | [diff] [blame] | 12 | ro.debuggable number if not "1", logd.statistics & |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 13 | ro.logd.kernel default false. |
Mark Salyzyn | 2591d48 | 2016-07-07 09:24:51 -0700 | [diff] [blame] | 14 | logd.logpersistd.enable bool auto Safe to start logpersist daemon service |
| 15 | logd.logpersistd string persist Enable logpersist daemon, "logcatd" |
| 16 | turns on logcat -f in logd context. |
| 17 | Responds to logcatd, clear and stop. |
| 18 | logd.logpersistd.buffer persist logpersistd buffers to collect |
| 19 | logd.logpersistd.size persist logpersistd size in MB |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 20 | persist.logd.logpersistd string Enable logpersist daemon, "logcatd" |
Mark Salyzyn | 2591d48 | 2016-07-07 09:24:51 -0700 | [diff] [blame] | 21 | turns on logcat -f in logd context. |
| 22 | persist.logd.logpersistd.buffer all logpersistd buffers to collect |
| 23 | persist.logd.logpersistd.size 256 logpersistd size in MB |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 24 | persist.logd.size number ro Global default size of the buffer for |
Mark Salyzyn | 932f7ac | 2015-08-28 08:02:59 -0700 | [diff] [blame] | 25 | all log ids at initial startup, at |
| 26 | runtime use: logcat -b all -G <value> |
Mark Salyzyn | 66607eb | 2016-01-05 08:49:44 -0800 | [diff] [blame] | 27 | ro.logd.size number svelte default for persist.logd.size. Larger |
| 28 | platform default sizes than 256KB are |
| 29 | known to not scale well under log spam |
| 30 | pressure. Address the spam first, |
| 31 | resist increasing the log buffer. |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 32 | persist.logd.size.<buffer> number ro Size of the buffer for <buffer> log |
| 33 | ro.logd.size.<buffer> number svelte default for persist.logd.size.<buffer> |
Siarhei Vishniakou | e8ed36b | 2017-12-28 14:13:22 -0800 | [diff] [blame] | 34 | ro.config.low_ram bool false if true, logd.statistics, |
| 35 | ro.logd.kernel default false, |
| 36 | logd.size 64K instead of 256K. |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 37 | persist.logd.filter string Pruning filter to optimize content. |
| 38 | At runtime use: logcat -P "<string>" |
Mark Salyzyn | bec3c3d | 2015-08-28 08:02:59 -0700 | [diff] [blame] | 39 | ro.logd.filter string "~! ~1000/!" default for persist.logd.filter. |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 40 | This default means to prune the |
Mark Salyzyn | bec3c3d | 2015-08-28 08:02:59 -0700 | [diff] [blame] | 41 | oldest entries of chattiest UID, and |
| 42 | the chattiest PID of system |
| 43 | (1000, or AID_SYSTEM). |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 44 | persist.logd.timestamp string ro The recording timestamp source. |
| 45 | "m[onotonic]" is the only supported |
| 46 | key character, otherwise realtime. |
| 47 | ro.logd.timestamp string realtime default for persist.logd.timestamp |
| 48 | log.tag string persist The global logging level, VERBOSE, |
| 49 | DEBUG, INFO, WARN, ERROR, ASSERT or |
| 50 | SILENT. Only the first character is |
| 51 | the key character. |
| 52 | persist.log.tag string build default for log.tag |
| 53 | log.tag.<tag> string persist The <tag> specific logging level. |
| 54 | persist.log.tag.<tag> string build default for log.tag.<tag> |
Mark Salyzyn | 671e343 | 2014-05-06 07:34:59 -0700 | [diff] [blame] | 55 | |
| 56 | NB: |
Mark Salyzyn | 2591d48 | 2016-07-07 09:24:51 -0700 | [diff] [blame] | 57 | - auto - managed by /init |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 58 | - bool+ - "true", "false" and comma separated list of "eng" (forced false if |
Mark Salyzyn | d1f41d6 | 2016-02-09 15:49:29 -0800 | [diff] [blame] | 59 | ro.debuggable is not "1") or "svelte" (forced false if ro.config.low_ram is |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 60 | true). |
| 61 | - svelte - see ro.config.low_ram for details. |
Mark Salyzyn | d1f41d6 | 2016-02-09 15:49:29 -0800 | [diff] [blame] | 62 | - svelte+ - see ro.config.low_ram and ro.debuggable for details. |
Mark Salyzyn | 9c66a58 | 2015-12-14 16:40:12 -0800 | [diff] [blame] | 63 | - ro - <base property> temporary override, ro.<base property> platform default. |
| 64 | - persist - <base property> override, persist.<base property> platform default. |
| 65 | - build - VERBOSE for native, DEBUG for jvm isLoggable, or developer option. |
| 66 | - number - support multipliers (K or M) for convenience. Range is limited |
Mark Salyzyn | 932f7ac | 2015-08-28 08:02:59 -0700 | [diff] [blame] | 67 | to between 64K and 256M for log buffer sizes. Individual log buffer ids |
| 68 | such as main, system, ... override global default. |
| 69 | - Pruning filter is of form of a space-separated list of [~][UID][/PID] |
| 70 | references, where '~' prefix means to blacklist otherwise whitelist. For |
Mark Salyzyn | bec3c3d | 2015-08-28 08:02:59 -0700 | [diff] [blame] | 71 | blacklisting, UID or PID may be a '!' to instead reference the chattiest |
| 72 | client, with the restriction that the PID must be in the UID group 1000 |
| 73 | (system or AID_SYSTEM). |