dear_diary
dear_diary copied to clipboard
Add Dio LogInterceptor
May i sugest the use of Alice? It has it's own interceptors that you can add to Dio
Alice seems unnecessary for basic logging, LogInterceptor ships with Dio ?
Yes, in the meantime if this is just what we want to log, Alice would appear as an "overkill".
@ghedwards IMO LogInterceptor should be used to print logs in development just like you would use a print statement. We might not want to add it as part of the code that will be used to generate a release build unless we were logging to an external service or file. That might also not be needed considering the fact that the API already provides logs and if anything fails one can always check the REST API for that (in release build/prod). What do you think?
You can always use the kReleaseMode to check if it's prod build or not. That would be great because in the tree shaking part of the compilation that code would not be compiled when release build