BrunoBonacci / mulog

μ/log is a micro-logging library that logs events and data, not words!
https://cljdoc.org/d/com.brunobonacci/mulog/
Apache License 2.0
485 stars 47 forks source link

clojure.spec - core functions #61

Open Dangercoder opened 3 years ago

Dangercoder commented 3 years ago

Hi,

I accidentally passed the wrong arguments to u/trace which caused problems with mulog and publishing. No error was emitted when executing the function which made me miss it.

example (u/trace [] ::eee 123))

This could have been detected quickly by having function specs for the core functions in mulog. I am happy to help you add this if you think its a good idea 👍

BrunoBonacci commented 3 years ago

Thanks for the heads up, Some μ/log users still use Clojure 1.8, so clojure.spec isn't an option for the moment. But I'll look into adding a better error message.