timbre

Jan K 2021-09-24T10:51:58.011900Z

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

Elia 2021-09-24T10:59:21.012Z

Great, thanks!

Elia 2021-09-24T00:26:06.009900Z

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.

Elia 2021-09-24T00:27:36.010300Z

Tried with timbre/log but same error