blob: 4bc5541c0c234698cff9ed90907181ced746d9f3 [file] [log] [blame]
Mark Salyzyn7260a5c2014-04-21 07:41:28 -07001The properties that logd responds to are:
2
3name type default description
Mark Salyzyn9c66a582015-12-14 16:40:12 -08004ro.logd.auditd.dmesg bool true selinux audit messages duplicated and
Mark Salyzyn7260a5c2014-04-21 07:41:28 -07005 sent on to dmesg log
Mark Salyzyn9c66a582015-12-14 16:40:12 -08006persist.logd.security bool false Enable security buffer.
7ro.device_owner bool false Override persist.logd.security to false
8ro.logd.kernel bool+ svelte+ Enable klogd daemon
9ro.logd.statistics bool+ svelte+ Enable logcat -S statistics.
Mark Salyzynd1f41d62016-02-09 15:49:29 -080010ro.debuggable number if not "1", logd.statistics &
Mark Salyzyn9c66a582015-12-14 16:40:12 -080011 ro.logd.kernel default false.
12persist.logd.logpersistd string Enable logpersist daemon, "logcatd"
Mark Salyzyn100658c2015-05-26 14:57:13 -070013 turns on logcat -f in logd context
Mark Salyzyn9c66a582015-12-14 16:40:12 -080014persist.logd.size number ro Global default size of the buffer for
Mark Salyzyn932f7ac2015-08-28 08:02:59 -070015 all log ids at initial startup, at
16 runtime use: logcat -b all -G <value>
Mark Salyzyn66607eb2016-01-05 08:49:44 -080017ro.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 Salyzyn9c66a582015-12-14 16:40:12 -080022persist.logd.size.<buffer> number ro Size of the buffer for <buffer> log
23ro.logd.size.<buffer> number svelte default for persist.logd.size.<buffer>
24ro.config.low_ram bool false if true, logd.statistics, logd.kernel
25 default false, logd.size 64K instead
26 of 256K.
27persist.logd.filter string Pruning filter to optimize content.
28 At runtime use: logcat -P "<string>"
Mark Salyzynbec3c3d2015-08-28 08:02:59 -070029ro.logd.filter string "~! ~1000/!" default for persist.logd.filter.
Mark Salyzyn9c66a582015-12-14 16:40:12 -080030 This default means to prune the
Mark Salyzynbec3c3d2015-08-28 08:02:59 -070031 oldest entries of chattiest UID, and
32 the chattiest PID of system
33 (1000, or AID_SYSTEM).
Mark Salyzyn9c66a582015-12-14 16:40:12 -080034persist.logd.timestamp string ro The recording timestamp source.
35 "m[onotonic]" is the only supported
36 key character, otherwise realtime.
37ro.logd.timestamp string realtime default for persist.logd.timestamp
38log.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.
42persist.log.tag string build default for log.tag
43log.tag.<tag> string persist The <tag> specific logging level.
44persist.log.tag.<tag> string build default for log.tag.<tag>
Mark Salyzyn671e3432014-05-06 07:34:59 -070045
46NB:
Mark Salyzyn9c66a582015-12-14 16:40:12 -080047- bool+ - "true", "false" and comma separated list of "eng" (forced false if
Mark Salyzynd1f41d62016-02-09 15:49:29 -080048 ro.debuggable is not "1") or "svelte" (forced false if ro.config.low_ram is
Mark Salyzyn9c66a582015-12-14 16:40:12 -080049 true).
50- svelte - see ro.config.low_ram for details.
Mark Salyzynd1f41d62016-02-09 15:49:29 -080051- svelte+ - see ro.config.low_ram and ro.debuggable for details.
Mark Salyzyn9c66a582015-12-14 16:40:12 -080052- 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 Salyzyn932f7ac2015-08-28 08:02:59 -070056 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 Salyzynbec3c3d2015-08-28 08:02:59 -070060 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).