mlopatkin / andlogview

Tool for viewing application logs from Android devices.
https://andlogview.mlopatkin.name/
Apache License 2.0
43 stars 6 forks source link

Preserve EOLNs when reading logs #302

Closed mlopatkin closed 1 year ago

mlopatkin commented 1 year ago

End-of-line (EOLN) symbols are important when parsing logs in LONG format, so we have to make them available to the logcat parser. This PR introduces LineReader - the replacement for the Java's BufferedReader that keeps EOLN characters in its output, and uses it to parse logs. We adjust the rest of the parsing infrastructure to either trim EOLN early (for dumpstate files), or to be tolerant to them (logcat parsers).

Part of #169