What about logging in pure function?


#1

As pure function is preferred over impure function, then how do we go about logging?


#2

If you’re into making everything pure as much as you can do then https://github.com/lancewalton/treelog is a possible solution for you. It wraps function’s return value in a tree log.