Fork me on GitHub
#babashka
<
2023-10-19
>
ritchie12:10:11

Are timbre appenders included in babashka? (ns concierto.core) (:require [taoensso.timbre :as timbre :refer [warn info]] [taoensso.timbre.appenders.core :as appenders])) results in ; java.io.FileNotFoundException: Could not locate taoensso/timbre/appenders/core.bb, taoensso/timbre/appenders/core.clj or taoensso/timbre/appenders/core.cljc on classpath. concierto.core /home/ritchie/Projects/concierto/concierto/src/concierto/core.clj:2:3 ; Evaluation of file core.clj failed: class java.io.FileNotFoundException I can use warn and info fine, thanks.

borkdude12:10:43

Why do you need this namespace?

ritchie12:10:52

ok, so it's not there because it's overhead specificllly redis/email appenders?

borkdude12:10:25

don't jump to conclusions, I was asking a question to get more information about your use case. it is not there because the most common appenders are already in the core namespace: https://github.com/taoensso/timbre/blob/5c0d1652aebfe85222d20c0c886d365bb9f30859/src/taoensso/timbre.cljc#L1026

borkdude12:10:12

the spit-appender is the file appender you are looking for, probably

ritchie12:10:21

ah ok, i was going by the timbre docs on appenders, didn't notice there was another avenue, thanks

borkdude12:10:01

it might be good to add this appenders namespace to bb since you aren't the first to ask

ritchie12:10:45

ok, so the timbre/spit-appender worked fine, so I'm happy,

๐ŸŽ‰ 1
borkdude12:10:34

I pushed a commit that will also expose these vars via taoensso.timbre.appenders.core

ritchie13:10:04

thank you sir

ritchie12:10:31

it's part of the timbre core, so i thought it would be there

ritchie12:10:25

certainly file appender is useful in a bb context, there's also a redis appender which is overhead here

borkdude12:10:38

please respond in the ๐Ÿงต