Questions tagged [timbre]
13 questions
9
votes
2 answers
Clojure - configure `timbre` logging
I wrote unit tests using clojure.test, and I am now adding benchmarks to my application, using criterium and perforate.
This works nicely, but I have a concern : I am seeing a lot of logs in my benchmark. I am using timbre, and I don't know how to…

nha
- 17,623
- 13
- 87
- 133
6
votes
2 answers
timbre `set-config!` has changed arity thus don't know how to use it to output std err/out to a file
I am trying to use https://github.com/ptaoussanis/timbre to log to a file rather than the console. Here is some documentation I've found on how to do that:
; The default setup is simple console logging. We with to turn off console logging and
;…

Chris Murphy
- 6,411
- 1
- 24
- 42
2
votes
1 answer
Why are my Graylog messages using the taoensso.timbre.appenders.3rd-party.gelf appender in Clojure not human readable?
I am using [com.taoensso/timbre "4.10.0"] in Clojure 1.9.0 with Java 1.8.
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
I have configured timbre with the…

Clarice Bouwer
- 3,631
- 3
- 32
- 55
2
votes
2 answers
Testing Timbre log outputs with Midje
I am using Timbre as a logging library but I am having issues testing it with Midje. I've got the following method and all I'm trying to do is asserting that Will be printed is printed.
(defn init [level]
(timbre/merge-config! {:output-fn…

Stéphane Bruckert
- 21,706
- 14
- 92
- 130
2
votes
0 answers
Clojure timbre 4.0 set-config
I'm using timbre to do logging in clojure. I like the package, but when I tried to redirect the logging output to a file, the examples at timbre's github page (and others I found on the web) didn't work.
I got an error telling me set-config! had…

Paul R
- 63
- 5
2
votes
2 answers
Timbre(Clojure), it takes one minute to finish
When I run following simple program, it takes one minute until finish after print "after info" message.
$ lein run -m logger.core
(ns logger.core
(:require [taoensso.timbre :as timbre]))
(defn -main []
(println "before info")
(timbre/info…

snufkon
- 301
- 4
- 8
2
votes
2 answers
Timbre macro 'p' can't be resolved but other Timbre macros can be
Whenever I try to include a Timbre p statement in a function I get an error:
project.clj
(defproject sketch "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public…

Bwalsh1001
- 85
- 6
1
vote
1 answer
What is the minimal configuration to activate timbre and redirect all timbre logging to slf4j?
I use SLF4J and Logback in my projects, and typically do all my logging using tools.logging. Every time I have to use a library that uses timbre, I have never been able to get the right code added to my project to see anything logged.
What is the…

joelittlejohn
- 11,665
- 2
- 41
- 54
1
vote
1 answer
Logging to two files in Timbre
I'm trying to log to two different files from the same namespace with Timbre. Or if that's not possible, at least to different files from the two different namespaces.
Inspecting timbre/*config* I get the impression that I'd need two configuration…

Domchi
- 10,705
- 6
- 54
- 64
1
vote
1 answer
log with timbre in clojure: how to set timestamp and local?
I have the following code.
(timbre/merge-config! {:timestamp-pattern "yyyy/MM/dd HH:mm:ss ZZ" } )
(info (str "acm template deploy start..., the version is " version))
But the timestamp format is not I want. How should I set the format?
$ lein…

Daniel Wu
- 5,853
- 12
- 42
- 93
0
votes
1 answer
How to see Timbre logs via nREPL?
I'm using Timbre for logging in Clojure. When I connect to a production instance via nREPL, I can't see the process logs unless I SSH into the machine and run journalctl.
How can I multiplex Timbre logs so that they are visible in the nREPL?
I…

Petrus Theron
- 27,855
- 36
- 153
- 287
0
votes
1 answer
Change value on runtime
I'm trying to change a value on runtime via a range input but I do not get it to work. I get no errors. When I change the frequence in onSlide the sound does still play on 800. It should change.
import $ from 'jquery';
import rangeslider from…

user2952238
- 749
- 2
- 11
- 36
0
votes
1 answer
Clojure: Timbre and clojure.test namespaces
Trying to get Timbre to load in my test project along with clojure.test. My first attempt is
(ns foo.core-test
(:require [clojure.test :refer :all]
[taoensso.timbre :as timbre]
[foo.core :refer :all]))
which compiles until…

Reb.Cabin
- 5,426
- 3
- 35
- 64