andyg
07/24/2020, 3:17 AMApacheClient()
... which is stuck on "DEBUG" log level and thus prints huge amounts of output. Tried to change with (LoggerFactory.getLogger(ApacheClient::class.java) as ch.qos.logback.classic.Logger).level = Level.ERROR
but no luck. Any ideas on changing the client log level? Thanks.andyg
07/24/2020, 3:52 AM"org.apache.http"
rather than the class, and you MUST place it in its own function annotated with @BeforeClass
(or just @Before
).
@Before fun setupLogging() {
(LoggerFactory.getLogger("org.apache.http") as ch.qos.logback.classic.Logger).level = <http://Level.INFO|Level.INFO>
}
dave
07/25/2020, 9:16 AMfredrik.nordin
07/27/2020, 1:44 PMlogback-test.xml
file to the test resources directory, with some some simple config to log to console at INFO level. That means I can control all logging in one place for all tests without having to do that in code.