etiennelenhart / Eiffel

Redux-inspired Android architecture library leveraging Architecture Components and Kotlin Coroutines
MIT License
211 stars 14 forks source link

Debugging mode #60

Closed etiennelenhart closed 5 years ago

etiennelenhart commented 5 years ago

For easier debugging EiffelViewModel should provide a debug flag that logs all Action dispatches and State updates.

jordond commented 5 years ago

Here is a similar library that has logging of the actions/reducer. They enable logging via a static method, with the ability to add a custom logger.

Not sure how you were planning on implementing the logging, but here i one approach.

etiennelenhart commented 5 years ago

I was planning to add a boolean "debug" parameter in EiffelViewModel so debug mode could be enabled per view model.

An additional static configuration to globally disable logging seems like a good idea.

Thanks for the suggestion.

etiennelenhart commented 5 years ago

Resolved by #72.