-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
can bring your own history class #166
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #166 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 11 +1
Lines 173 183 +10
=========================================
+ Hits 173 183 +10 ☔ View full report in Codecov by Sentry. |
class DefaultTalkerHistory implements TalkerHistory { | ||
DefaultTalkerHistory(this.settings); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide documentation ?
(Public class)
|
||
abstract class TalkerHistory { | ||
List<TalkerDataInterface> get history; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide documentation ?
(Public class)
Hello @Ppito ! |
fix(utils): add missing export file
# Conflicts: # packages/talker/lib/talker.dart
Sorry, I broke my git and pulled the wrong thing ... ignore this PR, I'll make another clean one. |
Hello @Frezyx,
I need to monitor my application and keep the log history to do some stuff on it. (Like, to bring back all the logs for our support operations).
So I've moved the logic of your history implementation into a class that I can override like I want.
By the way, I saw that you were thinking about a FileManager implementation, and I think we could use this approach. What do you thinks ?
And by extension, why not offer log history implementations directly with Isar, hive or SQFlite database?
In any case, by passing through a class we'll be free to make our own implementation of the history backup.