1*598139dcSAndroid Build Coastguard WorkerThe properties that logd and friends react to are: 2*598139dcSAndroid Build Coastguard Worker 3*598139dcSAndroid Build Coastguard Workername type default description 4*598139dcSAndroid Build Coastguard Workerro.logd.auditd bool true Enable selinux audit daemon 5*598139dcSAndroid Build Coastguard Workerro.logd.auditd.dmesg bool true selinux audit messages sent to dmesg. 6*598139dcSAndroid Build Coastguard Workerro.logd.auditd.main bool true selinux audit messages sent to main. 7*598139dcSAndroid Build Coastguard Workerro.logd.auditd.events bool true selinux audit messages sent to events. 8*598139dcSAndroid Build Coastguard Workerpersist.logd.security bool false Enable security buffer. 9*598139dcSAndroid Build Coastguard Workerro.organization_owned bool false Override persist.logd.security to false 10*598139dcSAndroid Build Coastguard Workerro.logd.kernel bool svelte+ Enable klogd daemon 11*598139dcSAndroid Build Coastguard Workerro.debuggable number if not "1", ro.logd.kernel defaults to false. 12*598139dcSAndroid Build Coastguard Workerlogd.logpersistd.enable bool auto Safe to start logpersist daemon service 13*598139dcSAndroid Build Coastguard Workerlogd.logpersistd string persist Enable logpersist daemon, "logcatd" 14*598139dcSAndroid Build Coastguard Worker turns on logcat -f in logd context. 15*598139dcSAndroid Build Coastguard Worker Responds to logcatd, clear and stop. 16*598139dcSAndroid Build Coastguard Workerlogd.logpersistd.buffer persist logpersistd buffers to collect 17*598139dcSAndroid Build Coastguard Workerlogd.logpersistd.size persist logpersistd size in MB 18*598139dcSAndroid Build Coastguard Workerlogd.logpersistd.rotate_kbytes persist logpersistd outout file size in KB. 19*598139dcSAndroid Build Coastguard Workerpersist.logd.logpersistd string Enable logpersist daemon, "logcatd" 20*598139dcSAndroid Build Coastguard Worker turns on logcat -f in logd context. 21*598139dcSAndroid Build Coastguard Workerpersist.logd.logpersistd.buffer all logpersistd buffers to collect 22*598139dcSAndroid Build Coastguard Workerpersist.logd.logpersistd.size 256 logpersistd size in MB 23*598139dcSAndroid Build Coastguard Workerpersist.logd.logpersistd.count 256 sets max number of rotated logs to <count>. 24*598139dcSAndroid Build Coastguard Workerpersist.logd.logpersistd.rotate_kbytes 1024 logpersistd output file size in KB 25*598139dcSAndroid Build Coastguard Workerpersist.logd.size number ro Global default size of the buffer for 26*598139dcSAndroid Build Coastguard Worker all log ids at initial startup, at 27*598139dcSAndroid Build Coastguard Worker runtime use: logcat -b all -G <value> 28*598139dcSAndroid Build Coastguard Workerro.logd.size number svelte default for persist.logd.size. Larger 29*598139dcSAndroid Build Coastguard Worker platform default sizes than 256KB are 30*598139dcSAndroid Build Coastguard Worker known to not scale well under log spam 31*598139dcSAndroid Build Coastguard Worker pressure. Address the spam first, 32*598139dcSAndroid Build Coastguard Worker resist increasing the log buffer. 33*598139dcSAndroid Build Coastguard Workerpersist.logd.size.<buffer> number ro Size of the buffer for <buffer> log 34*598139dcSAndroid Build Coastguard Workerro.logd.size.<buffer> number svelte default for persist.logd.size.<buffer> 35*598139dcSAndroid Build Coastguard Workerro.config.low_ram bool false if true, ro.logd.kernel defaults to false, 36*598139dcSAndroid Build Coastguard Worker and (if ro.debuggable is unset/false) 37*598139dcSAndroid Build Coastguard Worker logd.size is 64K instead of 256K. 38*598139dcSAndroid Build Coastguard Workerpersist.logd.filter string Pruning filter to optimize content. 39*598139dcSAndroid Build Coastguard Worker At runtime use: logcat -P "<string>" 40*598139dcSAndroid Build Coastguard Workerro.logd.filter string "~! ~1000/!" default for persist.logd.filter. 41*598139dcSAndroid Build Coastguard Worker This default means to prune the 42*598139dcSAndroid Build Coastguard Worker oldest entries of chattiest UID, and 43*598139dcSAndroid Build Coastguard Worker the chattiest PID of system 44*598139dcSAndroid Build Coastguard Worker (1000, or AID_SYSTEM). 45*598139dcSAndroid Build Coastguard Workerlog.tag string persist The global logging level, VERBOSE, 46*598139dcSAndroid Build Coastguard Worker DEBUG, INFO, WARN, ERROR, ASSERT or 47*598139dcSAndroid Build Coastguard Worker SILENT. Only the first character is 48*598139dcSAndroid Build Coastguard Worker the key character. 49*598139dcSAndroid Build Coastguard Workerpersist.log.tag string build default for log.tag 50*598139dcSAndroid Build Coastguard Workerlog.tag.<tag> string persist The <tag> specific logging level. 51*598139dcSAndroid Build Coastguard Workerpersist.log.tag.<tag> string build default for log.tag.<tag> 52*598139dcSAndroid Build Coastguard Worker 53*598139dcSAndroid Build Coastguard Workerlogd.buffer_type string (empty) The log buffer type: 'simple' or 54*598139dcSAndroid Build Coastguard Worker 'serialized' (default: 'serialized'). 55*598139dcSAndroid Build Coastguard Worker 56*598139dcSAndroid Build Coastguard WorkerNB: 57*598139dcSAndroid Build Coastguard Worker- auto - managed by /init 58*598139dcSAndroid Build Coastguard Worker- svelte - see ro.config.low_ram for details. 59*598139dcSAndroid Build Coastguard Worker- svelte+ - If empty, default to true if `ro.config.low_ram == false && ro.debuggable == true` 60*598139dcSAndroid Build Coastguard Worker- ro - <base property> temporary override, ro.<base property> platform default. 61*598139dcSAndroid Build Coastguard Worker- persist - <base property> override, persist.<base property> platform default. 62*598139dcSAndroid Build Coastguard Worker- build - VERBOSE for native, DEBUG for jvm isLoggable, or developer option. 63*598139dcSAndroid Build Coastguard Worker- number - support multipliers (K or M) for convenience. Range is limited 64*598139dcSAndroid Build Coastguard Worker to between 64K and 256M for log buffer sizes. Individual log buffer ids 65*598139dcSAndroid Build Coastguard Worker such as main, system, ... override global default. 66*598139dcSAndroid Build Coastguard Worker- Pruning filter rules are specified as UID, UID/PID or /PID. A '~' prefix indicates that elements 67*598139dcSAndroid Build Coastguard Worker matching the rule should be pruned with higher priority otherwise they're pruned with lower 68*598139dcSAndroid Build Coastguard Worker priority. All other pruning activity is oldest first. Special case ~! represents an automatic 69*598139dcSAndroid Build Coastguard Worker pruning for the noisiest UID as determined by the current statistics. Special case ~1000/! 70*598139dcSAndroid Build Coastguard Worker represents pruning of the worst PID within AID_SYSTEM when AID_SYSTEM is the noisiest UID. 71