Skip to content

Commit

Permalink
fix: add logback for examples module
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Dwairi committed Dec 1, 2024
1 parent 95ddb46 commit 71662c0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ object RequestLogger {
val requestBodyString = request.body?.let { it.peekContent(maxBodyLogSize, it.mediaType()?.charset) }

buildString {
append("[timestamp=${System.currentTimeMillis()}] - ")
append("[Outgoing] - ")
append("[Method=${request.method}, URL=${request.url}, Headers=[${request.headers}], Body=[${requestBodyString}]")
}.also {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ object ResponseLogger {
val responseBodyString = response.body?.let { it.peekContent(maxBodyLogSize, it.mediaType()?.charset) }

buildString {
append("[timestamp=${System.currentTimeMillis()}] - ")
append("[Incoming] - ")
append("[Code=${response.code}, URL=${response.request.url}, Headers=[${response.headers}], Body=[${responseBodyString}]")
}.also {
Expand Down
2 changes: 1 addition & 1 deletion examples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies {
implementation 'org.slf4j:slf4j-simple:2.0.16'
runtimeOnly 'ch.qos.logback:logback-classic:1.5.12'
implementation(project(":code"))
}

0 comments on commit 71662c0

Please sign in to comment.