AndroidLogcatDiagnostics

class AndroidLogcatDiagnostics(writer: AndroidLogWriter, val tag: String = "VModalSDK", val requestLevel: DiagnosticLogLevel = DiagnosticLogLevel.DEBUG, val responseLevel: DiagnosticLogLevel = DiagnosticLogLevel.INFO, val failureLevel: DiagnosticLogLevel = DiagnosticLogLevel.WARNING, val lineLimit: Int) : DiagnosticSink

DiagnosticSink that renders sanitized events as bounded Android Logcat lines.

The application supplies writer, normally by delegating to android.util.Log.println, so the core SDK remains JVM-testable and has no hard Android framework dependency.

Constructors

Link copied to clipboard
constructor(writer: AndroidLogWriter, tag: String = "VModalSDK", requestLevel: DiagnosticLogLevel = DiagnosticLogLevel.DEBUG, responseLevel: DiagnosticLogLevel = DiagnosticLogLevel.INFO, failureLevel: DiagnosticLogLevel = DiagnosticLogLevel.WARNING, lineLimit: Int)

Properties

Link copied to clipboard

Failure severity.

Link copied to clipboard

Maximum rendered code points per line.

Link copied to clipboard

Request-start severity.

Link copied to clipboard

Successful-response severity.

Link copied to clipboard
val tag: String

Stable Logcat tag.

Functions

Link copied to clipboard
open override fun emit(event: DiagnosticEvent)

Formats and writes one event without passing a throwable or response body to Logcat.

Link copied to clipboard
open override fun toString(): String

Returns structural adapter state without retaining or rendering the writer.