sttp
sttp copied to clipboard
minimise logs for sttp on REPL
sttp on REPL is very verbose. can we minimise it not to log all the information.
setup
scala> import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.ExecutionContext.Implicits.global
scala> import com.softwaremill.sttp._
import com.softwaremill.sttp._
scala> import com.softwaremill.sttp.asynchttpclient.future._
import com.softwaremill.sttp.asynchttpclient.future._
scala> import io.circe._
import io.circe._
scala> import io.circe.parser._
import io.circe.parser._
scala> implicit val backend = AsyncHttpClientFutureBackend()
15:27:46.401 [run-main-0] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
15:27:46.414 [run-main-0] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
15:27:46.417 [run-main-0] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.maxRecords: 4
15:27:46.417 [run-main-0] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.maxSampledRecords: 40
15:27:46.475 [run-main-0] DEBUG i.n.util.internal.PlatformDependent - Platform: MacOS
15:27:46.478 [run-main-0] DEBUG i.n.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
15:27:46.480 [run-main-0] DEBUG i.n.util.internal.PlatformDependent0 - Java version: 8
15:27:46.484 [run-main-0] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
15:27:46.485 [run-main-0] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
15:27:46.487 [run-main-0] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
15:27:46.488 [run-main-0] DEBUG i.n.util.internal.PlatformDependent0 - direct buffer constructor: available
15:27:46.489 [run-main-0] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
15:27:46.489 [run-main-0] DEBUG i.n.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9
15:27:46.489 [run-main-0] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): available
15:27:46.489 [run-main-0] DEBUG i.n.util.internal.PlatformDependent - sun.misc.Unsafe: available
15:27:46.490 [run-main-0] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdir: /var/folders/t0/d_6dzlq541v5tm9217k13wyx81n8sq/T (java.io.tmpdir)
15:27:46.490 [run-main-0] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
15:27:46.492 [run-main-0] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
15:27:46.492 [run-main-0] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: 1029177344 bytes
15:27:46.492 [run-main-0] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
15:27:46.493 [run-main-0] DEBUG io.netty.util.internal.CleanerJava6 - java.nio.ByteBuffer.cleaner(): available
15:27:46.494 [run-main-0] DEBUG i.n.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@6ce93782
15:27:46.512 [run-main-0] DEBUG i.n.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
15:27:46.744 [run-main-0] DEBUG io.netty.handler.ssl.JdkSslContext - Default protocols (JDK): [TLSv1.2, TLSv1.1, TLSv1]
15:27:46.744 [run-main-0] DEBUG io.netty.handler.ssl.JdkSslContext - Default cipher suites (JDK): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA]
15:27:46.791 [run-main-0] DEBUG i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 16
15:27:46.805 [run-main-0] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
15:27:46.806 [run-main-0] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
15:27:46.834 [run-main-0] DEBUG i.n.u.i.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
15:27:46.834 [run-main-0] DEBUG i.n.u.i.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
15:27:46.851 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 9
15:27:46.851 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 10
15:27:46.851 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
15:27:46.851 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
15:27:46.851 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
15:27:46.851 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
15:27:46.851 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
15:27:46.852 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
15:27:46.852 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
15:27:46.852 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
15:27:46.852 [run-main-0] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: true
15:27:46.865 [run-main-0] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
15:27:46.865 [run-main-0] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536
15:27:46.865 [run-main-0] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
backend: com.softwaremill.sttp.SttpBackend[scala.concurrent.Future,Nothing] = com.softwaremill.sttp.FollowRedirectsBackend@754705cf
making a call:
scala> val usersResponse = sttp.get(uri"""https://api.github.com/users""").send()
15:28:13.398 [run-main-0] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 5246 (auto-detected)
15:28:13.401 [run-main-0] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false
15:28:13.401 [run-main-0] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
15:28:13.402 [run-main-0] DEBUG io.netty.util.NetUtil - Loopback interface: lo0 (lo0, 0:0:0:0:0:0:0:1)
15:28:13.403 [run-main-0] DEBUG io.netty.util.NetUtil - Failed to get SOMAXCONN from sysctl and file /proc/sys/net/core/somaxconn. Default: 128
15:28:13.404 [run-main-0] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: ac:de:48:ff:fe:00:11:22 (auto-detected)
usersResponse: scala.concurrent.Future[com.softwaremill.sttp.Response[String]] = Future(<not completed>)
scala> 15:28:13.474 [AsyncHttpClient-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.bytebuf.checkAccessible: true
15:28:13.474 [AsyncHttpClient-3-1] DEBUG i.n.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@5e845781
15:28:13.607 [AsyncHttpClient-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 32768
15:28:13.607 [AsyncHttpClient-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxSharedCapacityFactor: 2
15:28:13.607 [AsyncHttpClient-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.linkCapacity: 16
15:28:13.607 [AsyncHttpClient-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8
15:28:13.872 [AsyncHttpClient-3-1] DEBUG o.a.n.channel.NettyConnectListener - Using new Channel '[id: 0x93e1591f, L:/172.20.159.178:57668 - R:api.github.com/192.30.253.116:443]' for 'GET' to '/users'
15:28:13.890 [AsyncHttpClient-3-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x93e1591f, L:/172.20.159.178:57668 - R:api.github.com/192.30.253.116:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
15:28:14.113 [AsyncHttpClient-3-1] DEBUG i.n.h.c.compression.ZlibCodecFactory - -Dio.netty.noJdkZlibDecoder: false
15:28:14.113 [AsyncHttpClient-3-1] DEBUG i.n.h.c.compression.ZlibCodecFactory - -Dio.netty.noJdkZlibEncoder: false
15:28:14.120 [AsyncHttpClient-3-1] DEBUG o.a.netty.handler.HttpHandler -
Request DefaultFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
GET /users HTTP/1.1
Accept-Encoding: gzip, deflate
host: api.github.com
accept: */*
user-agent: AHC/2.1
Response DefaultHttpResponse(decodeResult: success, version: HTTP/1.1)
HTTP/1.1 200 OK
Server: GitHub.com
Date: Fri, 01 Jun 2018 22:28:14 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Status: 200 OK
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 54
X-RateLimit-Reset: 1527893156
Cache-Control: public, max-age=60, s-maxage=60
Vary: Accept
ETag: W/"02eec5b334b0e4c05253d3f4138daa46"
X-GitHub-Media-Type: github.v3; format=json
Link: <https://api.github.com/users?since=46>; rel="next", <https://api.github.com/users{?since}>; rel="first"
Access-Control-Expose-Headers: ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Frame-Options: deny
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Content-Security-Policy: default-src 'none'
X-Runtime-rack: 0.130127
X-GitHub-Request-Id: 4D76:0BD9:E06092:1B2E6A8:5B11C87D
15:28:14.135 [AsyncHttpClient-3-1] DEBUG o.a.netty.channel.ChannelManager - Adding key: https://api.github.com:443 for channel [id: 0x93e1591f, L:/172.20.159.178:57668 - R:api.github.com/192.30.253.116:443]
15:28:14.422 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:15.525 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:16.622 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:17.725 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:18.822 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:19.925 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:21.023 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:22.125 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:23.224 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:24.324 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:25.424 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:26.524 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:27.626 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:28.724 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:29.826 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:30.924 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:32.024 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:33.126 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:34.222 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:35.322 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:36.425 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:37.523 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:38.621 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:39.722 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:40.826 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:41.923 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:43.025 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:44.122 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:45.224 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:46.322 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:47.424 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:48.522 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:49.624 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:50.724 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:51.822 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:52.921 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:54.025 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:55.124 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:56.224 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:57.325 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:58.424 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:28:59.523 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:00.621 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:01.726 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:02.822 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:03.924 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:05.021 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:06.121 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:07.222 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:08.324 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:09.425 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:10.524 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:11.625 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:12.724 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:13.821 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:14.105 [AsyncHttpClient-3-1] DEBUG o.a.netty.handler.HttpHandler - Channel Closed: [id: 0x93e1591f, L:/172.20.159.178:57668 ! R:api.github.com/192.30.253.116:443] with attribute DISCARD
15:29:14.923 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Entry count for : https://api.github.com:443 : 1
15:29:14.924 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Adding Candidate expired Channel [id: 0x93e1591f, L:/172.20.159.178:57668 ! R:api.github.com/192.30.253.116:443] isIdleTimeoutExpired=true isRemotelyClosed=true isTtlExpired=false
15:29:14.924 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Closing Idle Channel [id: 0x93e1591f, L:/172.20.159.178:57668 ! R:api.github.com/192.30.253.116:443]
15:29:14.924 [AsyncHttpClient-timer-1-1] DEBUG o.a.netty.channel.DefaultChannelPool - Closed 1 connections out of 1 in 0 ms
true, that's because there's no default logback.xml... I'm not sure how to best solve it. We can't package a logback.xml (or depend on logback, for that matter), but maybe a separate sttp-repl module with the logging setup would be a good solution?
Would that work for you - clean logging at the expense of having to add a separate dependency to tune down the logs?
I know this is an old post, but I was wondering if there was any resolution on this? I'm using sttp and am specifically interested in turning off the log to the subcall of HttpHandler:
logger.debug("\n\nRequest {}\n\nResponse {}\n", httpRequest, response);
Not that I know of. Which backend do you use?
Maybe we have to prepare a separate REPL-artifact, which would also include the appropriate logging configuration?
Actually, I found a workaround using logback so nothing else is needed. Thanks for your time.
@lauren-ho can you document it here for others as well? :)
Sure, this requires the following import:"org.codehaus.janino" % "janino" % "2.6.1"
Next, you need a logger.xml file and ensure that <logger name="org.asynchttpclient" level="WARN" /> is in it. You can put whatever level you want in this, just know that softwaremill defaults to DEBUG.
Finally, ensure that you are properly setting the file path of the logger such that it will be pulled. This is either the default classpath described here or by specifying -Dlogback.configurationFile=path/to/logger.xml upon running.