Skip to content
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 #169

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Conversation

Ppito
Copy link
Contributor

@Ppito Ppito commented Dec 12, 2023

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.

EDIT: Sorry, for the previous PR #166, I don't know what happened.
I've added the comments missing from your review.

I'll do another PR, with the Isar implementation and the Readme update. :D

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9c0cbf6) 100.00% compared to head (f79fe10) 100.00%.
Report is 1 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #169   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        11    +1     
  Lines          175       183    +8     
=========================================
+ Hits           175       183    +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Frezyx
Copy link
Owner

Frezyx commented Dec 14, 2023

Hello @Ppito !
Good history functional extending.
LGMT

@Frezyx Frezyx merged commit ee1ef66 into Frezyx:master Dec 14, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants