18 Commits

Author SHA1 Message Date
dab2b07a88 Logger: Do not show null elements
Extremely hacky, I know.
2021-02-15 12:28:35 +01:00
e3e513ef65 Log device info
This way it's easier to debug user's issues
2021-02-04 10:51:29 +01:00
a9f3001798 Use StackTrace library to make the traces shorter
And hopefully add some more context to some async stack traces that
don't make any sense.
2020-11-18 12:53:12 +01:00
767d890a55 Avoid logging logger errors
causes a bit of a recursion
2020-11-10 18:47:30 +01:00
a11fe63983 Report Bug: Attach logs from the last 2 days 2020-11-10 18:37:54 +01:00
eac5a296ab Logger: Add more logging statements 2020-11-09 11:41:12 +01:00
2c11185e0b DateTime doesn't support operator + or - 2020-11-08 10:34:14 +01:00
071f15b067 Bug Report: Send logs for today and yesterday 2020-11-07 15:31:16 +01:00
5e74f75ebd Logs: Show today and yesterday's logs
Fixes APP-8T
2020-11-07 15:24:43 +01:00
9d00fdac06 Use import_sorter
flutter pub run import_sorter:main --no-comments

The code feels much cleaner
2020-07-24 12:43:28 +02:00
2a35ea7c38 BugReport: Send bug reports with new logs
Earlier we used to call 'adb logcat' and get all the logs and send
those. This didn't work on iOS and we wouldn't get all the logs even in
android at times as the logcat buffer can be unreliable.

Since now we log all the messages to a file, we can just send that file.
The disadvtange is that we only get Dart level logs, and not iOS or Java
or NDK or our C libraries logs.

I should really dump libgit2 ASAP.
2020-05-31 02:42:58 +02:00
68d3aa1a2b Disable Fimber logging in release mode
No point debugging to adb and writing it to a file.
2020-05-31 02:32:51 +02:00
012c3b067d Fimber: Show proper log tag
Now that we're wrapping Fimber in our own logging system, we should get
the correct tag.
2020-05-31 02:30:44 +02:00
a324d0f755 Logging: Allow logging structured fields
Display this in the Debug Screen app. Additionally, add a reason why a
file was not loaded.
2020-05-17 19:47:11 +02:00
804254cb2e Fix crash while parsing logs
So ironic
2020-05-16 20:59:11 +02:00
ea733aacb5 Add a very simple Debug screen
This will show all the debug messages, which include when a file is
being ignored and not loaded, and hopefully all the exceptions. So the
user should be able to better understand why a file has been ignored.

It's not an ideal solution, but it's a quick fix.

Fixes #122
2020-05-06 01:09:57 +02:00
63e7d0e927 Logger: Log all messages to a file
For Bug reports we were calling 'adb logcat' and fetching the logs, but
the amount of logs we got was quite arbitrary, also this wasn't possible
in iOS.

With this approach, we don't get the lower level logs of Android/iOS or
from libgit2, but since we're slowly moving away from libgit2 anyway, it
will have to do.
2020-05-06 00:17:46 +02:00
bb0e574495 Abstract out the logging
This way moving away from Fimber will be much easier.
2020-04-04 11:50:57 +02:00