sci.configs icon indicating copy to clipboard operation
sci.configs copied to clipboard

wishlist: timbre namespace bindings (for JVM and JS)

Open awb99 opened this issue 2 years ago • 4 comments

If there is one library that I would like to use in sci that it is missing, it would be timbre. https://github.com/taoensso/timbre

Timbre defines logging macros (trace, debug, info, warn, error) that can then be logged to various destinations. They work in the browser. What is nice about timbre is that one can define the config at runtime to say display only warning or above messages. But for debugging it is possible to enable the logging of one namespace at say debug level.

The macros capture the namespace and function name and the line number and this gets logged to say the browser devtools console with the correct loglevel.

I think that this might be also useful for node.js based apps.

awb99 avatar Aug 20 '23 20:08 awb99

Is this for JS or JVM?

borkdude avatar Aug 20 '23 20:08 borkdude

Timbre works both in jvm and on js. I use sci for js. So my usecase is for js.

awb99 avatar Aug 25 '23 05:08 awb99

I'm using Timbre on the JVM in babashka. I could submit that configuration here, but I don't know yet if it works for CLJS.

borkdude avatar Aug 25 '23 09:08 borkdude

I am happy to test....

awb99 avatar Aug 27 '23 22:08 awb99