2016-07-07 18:24:51 +02:00
|
|
|
The properties that logd and friends react to are:
|
2014-04-21 16:41:28 +02:00
|
|
|
|
|
|
|
name type default description
|
2016-06-14 20:04:43 +02:00
|
|
|
ro.logd.auditd bool true Enable selinux audit daemon
|
2016-12-30 00:16:06 +01:00
|
|
|
ro.logd.auditd.dmesg bool true selinux audit messages sent to dmesg.
|
|
|
|
ro.logd.auditd.main bool true selinux audit messages sent to main.
|
|
|
|
ro.logd.auditd.events bool true selinux audit messages sent to events.
|
2015-12-15 01:40:12 +01:00
|
|
|
persist.logd.security bool false Enable security buffer.
|
2020-02-17 12:42:54 +01:00
|
|
|
ro.organization_owned bool false Override persist.logd.security to false
|
2015-12-15 01:40:12 +01:00
|
|
|
ro.logd.kernel bool+ svelte+ Enable klogd daemon
|
|
|
|
ro.logd.statistics bool+ svelte+ Enable logcat -S statistics.
|
2016-02-10 00:49:29 +01:00
|
|
|
ro.debuggable number if not "1", logd.statistics &
|
2015-12-15 01:40:12 +01:00
|
|
|
ro.logd.kernel default false.
|
2016-07-07 18:24:51 +02:00
|
|
|
logd.logpersistd.enable bool auto Safe to start logpersist daemon service
|
|
|
|
logd.logpersistd string persist Enable logpersist daemon, "logcatd"
|
|
|
|
turns on logcat -f in logd context.
|
|
|
|
Responds to logcatd, clear and stop.
|
|
|
|
logd.logpersistd.buffer persist logpersistd buffers to collect
|
|
|
|
logd.logpersistd.size persist logpersistd size in MB
|
2019-05-21 05:19:12 +02:00
|
|
|
logd.logpersistd.rotate_kbytes persist logpersistd outout file size in KB.
|
2015-12-15 01:40:12 +01:00
|
|
|
persist.logd.logpersistd string Enable logpersist daemon, "logcatd"
|
2016-07-07 18:24:51 +02:00
|
|
|
turns on logcat -f in logd context.
|
|
|
|
persist.logd.logpersistd.buffer all logpersistd buffers to collect
|
|
|
|
persist.logd.logpersistd.size 256 logpersistd size in MB
|
2019-05-21 05:19:12 +02:00
|
|
|
persist.logd.logpersistd.count 256 sets max number of rotated logs to <count>.
|
|
|
|
persist.logd.logpersistd.rotate_kbytes 1024 logpersistd output file size in KB
|
2015-12-15 01:40:12 +01:00
|
|
|
persist.logd.size number ro Global default size of the buffer for
|
2015-08-28 17:02:59 +02:00
|
|
|
all log ids at initial startup, at
|
|
|
|
runtime use: logcat -b all -G <value>
|
2016-01-05 17:49:44 +01:00
|
|
|
ro.logd.size number svelte default for persist.logd.size. Larger
|
|
|
|
platform default sizes than 256KB are
|
|
|
|
known to not scale well under log spam
|
|
|
|
pressure. Address the spam first,
|
|
|
|
resist increasing the log buffer.
|
2015-12-15 01:40:12 +01:00
|
|
|
persist.logd.size.<buffer> number ro Size of the buffer for <buffer> log
|
|
|
|
ro.logd.size.<buffer> number svelte default for persist.logd.size.<buffer>
|
2017-12-28 23:13:22 +01:00
|
|
|
ro.config.low_ram bool false if true, logd.statistics,
|
|
|
|
ro.logd.kernel default false,
|
|
|
|
logd.size 64K instead of 256K.
|
2015-12-15 01:40:12 +01:00
|
|
|
persist.logd.filter string Pruning filter to optimize content.
|
|
|
|
At runtime use: logcat -P "<string>"
|
2015-08-28 17:02:59 +02:00
|
|
|
ro.logd.filter string "~! ~1000/!" default for persist.logd.filter.
|
2015-12-15 01:40:12 +01:00
|
|
|
This default means to prune the
|
2015-08-28 17:02:59 +02:00
|
|
|
oldest entries of chattiest UID, and
|
|
|
|
the chattiest PID of system
|
|
|
|
(1000, or AID_SYSTEM).
|
2015-12-15 01:40:12 +01:00
|
|
|
log.tag string persist The global logging level, VERBOSE,
|
|
|
|
DEBUG, INFO, WARN, ERROR, ASSERT or
|
|
|
|
SILENT. Only the first character is
|
|
|
|
the key character.
|
|
|
|
persist.log.tag string build default for log.tag
|
|
|
|
log.tag.<tag> string persist The <tag> specific logging level.
|
|
|
|
persist.log.tag.<tag> string build default for log.tag.<tag>
|
2014-05-06 16:34:59 +02:00
|
|
|
|
|
|
|
NB:
|
2016-07-07 18:24:51 +02:00
|
|
|
- auto - managed by /init
|
2015-12-15 01:40:12 +01:00
|
|
|
- bool+ - "true", "false" and comma separated list of "eng" (forced false if
|
2016-02-10 00:49:29 +01:00
|
|
|
ro.debuggable is not "1") or "svelte" (forced false if ro.config.low_ram is
|
2015-12-15 01:40:12 +01:00
|
|
|
true).
|
|
|
|
- svelte - see ro.config.low_ram for details.
|
2016-02-10 00:49:29 +01:00
|
|
|
- svelte+ - see ro.config.low_ram and ro.debuggable for details.
|
2015-12-15 01:40:12 +01:00
|
|
|
- ro - <base property> temporary override, ro.<base property> platform default.
|
|
|
|
- persist - <base property> override, persist.<base property> platform default.
|
|
|
|
- build - VERBOSE for native, DEBUG for jvm isLoggable, or developer option.
|
|
|
|
- number - support multipliers (K or M) for convenience. Range is limited
|
2015-08-28 17:02:59 +02:00
|
|
|
to between 64K and 256M for log buffer sizes. Individual log buffer ids
|
|
|
|
such as main, system, ... override global default.
|
|
|
|
- Pruning filter is of form of a space-separated list of [~][UID][/PID]
|
|
|
|
references, where '~' prefix means to blacklist otherwise whitelist. For
|
2015-08-28 17:02:59 +02:00
|
|
|
blacklisting, UID or PID may be a '!' to instead reference the chattiest
|
|
|
|
client, with the restriction that the PID must be in the UID group 1000
|
|
|
|
(system or AID_SYSTEM).
|