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

Problems regarding to Exports logs #40

Open
lutang123 opened this issue Feb 20, 2021 · 3 comments
Open

Problems regarding to Exports logs #40

lutang123 opened this issue Feb 20, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@lutang123
Copy link

Hello

On the library description, it says "Logs can easily be exported as zip file base on filter type, the zip file can then be uploaded to server or to use it locally."

I see there is a function to export and this will export to an external storage, so this will save logs in a db and txt file on user's phone. But how to get these logs sent to company's email so that developer can access user's logs? I means if it just saved on user's phone and still can't access, that's not very useful right? but I couldn't find any other resources on how to do it. How to export as a zip file and then upload to server?

This might not be an issue, but I don't know how to do it and if anyone knows, please share with me, thank you!

@zubairehman zubairehman self-assigned this Mar 31, 2021
@zubairehman zubairehman added the enhancement New feature or request label Mar 31, 2021
@zubairehman
Copy link
Owner

Hi @lutang123

I will add a convenience method to share logs via email or other apps.

Thanks.

@sallyoga
Copy link

There is an exception caused by casting on: getAllLogs() in class FlogDao
E/flutter ( 2903): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: type 'Future<List<RecordSnapshot<int, Map<String, Object?>>>>' is not a subtype of type 'FutureOr<List<RecordSnapshot<int, Map<String, Object>>>>' in type cast
E/flutter ( 2903): #0 FlogDao.getAllLogs (package:f_logs/data/local/flog_dao.dart:100)
E/flutter ( 2903):
E/flutter ( 2903): #1 FLog._getAllLogs (package:f_logs/model/flog/flog.dart:433)
E/flutter ( 2903):
E/flutter ( 2903): #2 FLog.exportLogs (package:f_logs/model/flog/flog.dart:262)
E/flutter ( 2903):
E/flutter ( 2903): #3 DebuggingScreen._onEmailLogs (package:Relivion/ui/profile/debugging_screen.dart:170)
E/flutter ( 2903):

@MarioNepomuceno
Copy link

You can use the share_plus pluggin, it has support to share files
Share.shareFiles( ['${directory.path}/FLogs/flog.txt'], text: 'Log', );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants