Open filiph opened 3 years ago
Since most projects will need logging, I think it should be included with a simple example.
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.
Maybe not only logging but also a global exception handler?
Perhaps a logging abstraction over print that can be easily overridden?
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. 👍🏼
Yes to logging, if I get a vote. :)
Yes to logging, possibly a complete but simple example on how to set it up correctly
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
Logging is one of those things every app will need sooner or later. Should it be set up in the template? To what extent?
main()
) saying something like: "Here's where you can set up your logging and error reporting" (plus link)pkg:logging
but do not gather the messagespkg:logging
and gather the messages inmain
throughLogger.root.onRecord.listen
, printing them