-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logs are not chunked on Android #394
Comments
We think the best way to accomplish this would be to implement a "ChunkedLogWriter" that can be used if desired as opposed to updating the default implementation. We a log writer that does that chunking could definitely be useful though. We'll add to our backlog, but welcome Pull Requests |
The default implementation should be to send logs as chunked. Most people wouldn't expect their logs to just suddenly be cut off. |
Sorry if I misspoke by saying default implementation. What I meant is that the character limit is specific to logcat and wont necessarily be the same for other tools. For that reason it will be the responsibility of the LogWriter's to handle chunking correctly |
Yes, as far as I know, only android restricts log lines to 4096 symbols. Other platforms probably have 65536 char limit. |
2.0.4 has been deployed with @psh 's ChunkedLogWriter. Thanks for the input and let us know if you have any issues |
Kermit does not split long log statements into separate log invocations. As a result, any string longer than 4096 characters is cut off (not printed fully). This disallows using Kermit for e.g. http response logging. An example implementation of message splitting can be taken from Ktor or FlowMVI
The text was updated successfully, but these errors were encountered: