This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-24
Channels
- # announcements (30)
- # asami (9)
- # babashka (37)
- # beginners (120)
- # calva (26)
- # cider (3)
- # clara (9)
- # clj-commons (7)
- # clj-kondo (17)
- # cljsrn (2)
- # clojure (32)
- # clojure-europe (56)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (4)
- # clojurescript (34)
- # conjure (1)
- # copenhagen-clojurians (8)
- # core-async (21)
- # cursive (2)
- # datahike (2)
- # datascript (5)
- # events (4)
- # fulcro (32)
- # graalvm (10)
- # heroku (3)
- # introduce-yourself (1)
- # jobs (2)
- # lsp (3)
- # luminus (1)
- # malli (8)
- # meander (15)
- # minecraft (1)
- # nrepl (2)
- # off-topic (57)
- # pathom (2)
- # polylith (35)
- # reagent (6)
- # reitit (8)
- # releases (1)
- # rewrite-clj (7)
- # shadow-cljs (21)
- # timbre (4)
- # tools-build (1)
- # tools-deps (33)
- # vrac (8)
Hi, never used timbre before but after reading the docs I keep getting the same error:
Invalid Timbre logging level: should be e/o #{:trace :debug :info :warn :error :fatal :report}
Step to reproduce:
1. lein new app timbre-demo
2. add [com.taoensso/timbre "5.1.2"]
3. here is the core file
(ns timbre-demo.core
(:require [taoensso.timbre :as timbre])
(:gen-class))
(timbre/refer-timbre)
(timbre/set-level! :debug)
(defn -main
"I don't do a whole lot ... yet."
[& args]
(log "Hello, World!"))
I'm setting the log level :debug
explicitly.@eliascotto94 The "log" function needs a level as the first argument, that is (log :debug "Hello world")
, or you can do (debug "Hello world")
. Doing set-level!
controls what levels will appear in the log.