Fork me on GitHub
#timbre
<
2022-10-19
>
Annaia Danvers17:10:13

Working on porting an existing app from mulog over to timbre and wondering if anyone has any idea how best to reproduce the behavior of mulog's trace. spy would seem to be the equivalent function, but it lacks the ability to reflect on the return value. In this case we're using it to pull the :status key out of a clj-http response map so we're not logging the entire body. How would I do this in timbre?

Annaia Danvers18:10:57

I have attempted to do this with middleware but I seem to be failing to understand the expected data model. Also wondering if mulog/trace's function timing could similarly be implemented as middleware