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 configure it either from Clojure code of from Leiningen.
I have not setup a config map, although it claims in the README to be super simple, I didn't found additional documentation, and I was happy so far with the defaults.
How do I configure timbre logging to have different profiles between development, production, and benchmarks (which is a sub-case of development).
Note : in case this is relevant, I am using a production and development profiles in Leiningen already.
Yes, the Timbre docs could be improved. Here is a demo program I used to figure out the right settings:
When executed on the command line you will get
All of the action will go into the file
log.txtas follows: