Fork me on GitHub
#timbre
<
2021-09-24
>
olaf00:09:06

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.

olaf00:09:36

Tried with timbre/log but same error

Jan K10:09:58

@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.

olaf10:09:21

Great, thanks!