LogContentConfig

class LogContentConfig @JvmOverloads constructor(loggedMessageContentMaxBytes: Int = DEFAULT_LOGGED_MESSAGE_CONTENT_MAX_BYTES, loggedHttpResponseMaxBytes: Int = DEFAULT_LOGGED_HTTP_RESPONSE_MAX_BYTES)

Controls what (and how much of) the SDK includes inside individual debug log entries.

Logging delivery — sinks, levels, formatting — is configured via an SLF4J implementation (e.g. logback) or a CustomLogger. This type only governs the content the SDK renders into each log record before it reaches the logger.

Constructors

Link copied to clipboard
constructor(loggedMessageContentMaxBytes: Int = DEFAULT_LOGGED_MESSAGE_CONTENT_MAX_BYTES, loggedHttpResponseMaxBytes: Int = DEFAULT_LOGGED_HTTP_RESPONSE_MAX_BYTES)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Maximum size, in bytes, of the HTTP response body peeked into the network-response debug log entry. Set to 0 to replace the body field with the placeholder marker [...]. Set to Int.MAX_VALUE to render the full response body with no practical limit. Negative values are silently coerced to 0 (body rendering disabled).

Link copied to clipboard

Maximum size, in UTF-8 bytes, of message content rendered into the publish/signal/subscribe debug log entry. Set to 0 to replace the content field with the placeholder marker [...]. Set to Int.MAX_VALUE to render the full content with no practical limit. Negative values are silently coerced to 0 (content rendering disabled).