react-native-logs transport that mirrors each formatted log entry to the platform
system log (logcat on Android, the unified log on iOS) through console.log.
App data is wiped by E2E clearState (pm clear / simctl uninstall), taking the
file log with it, while the system log outlives it. Every line, and every
SYSTEM_LOG_MAX_CHUNK-character slice of a long line, is tagged and emitted on its
own so a grep on SYSTEM_LOG_TAG keeps stack traces and JSON payloads whole.
Parameters
props: {msg:string}
Transport props from react-native-logs
msg: string
Fully formatted log entry (date, extension, level and message)
react-native-logs transport that mirrors each formatted log entry to the platform system log (logcat on Android, the unified log on iOS) through
console.log.App data is wiped by E2E
clearState(pm clear/simctl uninstall), taking the file log with it, while the system log outlives it. Every line, and every SYSTEM_LOG_MAX_CHUNK-character slice of a long line, is tagged and emitted on its own so a grep on SYSTEM_LOG_TAG keeps stack traces and JSON payloads whole.