Fork me on GitHub
#pedestal
<
2018-04-17
>
joost-diepenmaat07:04:05

@caleb.macdonaldblack you should be able to disable logging for particular namespaces in logback.xml

joost-diepenmaat07:04:43

if you want to do that only for test, what you can do is configure a separate test-resources dir containing a different logback.xml, and include that test-resources dir in your resources config for the “test” profile (that’s assuming you’re using leiningen - boot and tools.deps should allow similar strategies)

joost-diepenmaat07:04:32

alternatively, log requests to a different log file that you can ignore 🙂

caleb.macdonaldblack07:04:52

@joost-diepenmaat Thanks. I think that’s what I was looking for. 🙂

ddeaguiar12:04:06

@caleb.macdonaldblack you can also do this on a per test level using something like this: https://gist.github.com/ddeaguiar/ebe46de1215134c28c59

ddeaguiar12:04:02

this is useful to squelch logging for tests that verify errors.

caleb.macdonaldblack13:04:57

@ddeaguiar Oh wow thanks. I’ll check it out

ddeaguiar13:04:40

np! It’s one of the test utils I typically bring into a project