Skip to content

Commit

Permalink
Append entries of payload to LoggingEventBuilder so implementations c…
Browse files Browse the repository at this point in the history
…an make use of this data
  • Loading branch information
imherrera authored and oshai committed Jul 3, 2023
1 parent 894871f commit cc90ea7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ internal class LocationIgnorantKLogger(override val underlyingLogger: Logger) :
KLoggingEventBuilder().apply(block).run {
val builder = underlyingLogger.atLevel(level.toSlf4j())
marker?.toSlf4j()?.let { builder.addMarker(it) }
payload?.forEach { (key, value) -> builder.addKeyValue(key, value) }
builder.setCause(cause)
builder.log(message)
}
Expand Down

0 comments on commit cc90ea7

Please sign in to comment.