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