hi jesse,
Functional programming provides another way. This is rough POC code thrown together and can be made a bit more intuitive.<p><a href="https://github.com/dustingetz/monadic-logging-play" rel="nofollow">https://github.com/dustingetz/monadic-logging-play</a>