brianegan / new_flutter_template

Test ideas for a new flutter template
140 stars 23 forks source link

Should the template set up logging? #13

Open filiph opened 3 years ago

filiph commented 3 years ago

Logging is one of those things every app will need sooner or later. Should it be set up in the template? To what extent?

fullmers commented 3 years ago

Since most projects will need logging, I think it should be included with a simple example.

PiotrWpl commented 3 years ago

I think that it would be a good idea to show that there are better solutions for logging than a simple print() command. Even showing that there is something like log() will be useful for most of the new users.

escamoteur commented 3 years ago

Maybe not only logging but also a global exception handler?

chimon2000 commented 3 years ago

Perhaps a logging abstraction over print that can be easily overridden?

nerder commented 3 years ago

This is totally needed, we are struggling on implement this on a mature app. Logging is that kind of thing that is very easy to plug in in the beginning, not so easy to do at later stage, so up for it. 👍🏼

sfshaza2 commented 3 years ago

Yes to logging, if I get a vote. :)

asidt commented 3 years ago

Yes to logging, possibly a complete but simple example on how to set it up correctly

neiljaywarner commented 3 years ago

Flimber or similar - especially if you can do LineNumberDebugTree - jump to line in source https://stackoverflow.com/questions/38689399/log-method-name-and-line-number-in-timber - it's like magic

Timber is practically the gold standard on Android

especially nice would be a link to a dead simple crashlytics tutorial and a way you you can turn on with a few lines