KenworkLogger

Lightweight, dependency-free logging facade for the library. Mirrors SwiftyNetwork's Logger.

Defaults to LogLevel.WARNING and an android.util.Log-backed sink; both are replaceable so consumers can raise verbosity or forward to their own logging stack (Timber, etc.). Every method accepts an optional attributes map, forwarded to the configured sink when it implements StructuredLogSink (e.g. to populate OpenTelemetry log record Attributes); a plain LogSink simply never sees it.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun debug(message: String, category: LogCategory = LogCategory.NETWORK, attributes: Map<String, Any?> = emptyMap())
Link copied to clipboard
fun error(message: String, throwable: Throwable? = null, category: LogCategory = LogCategory.NETWORK, attributes: Map<String, Any?> = emptyMap())
Link copied to clipboard
fun info(message: String, category: LogCategory = LogCategory.NETWORK, attributes: Map<String, Any?> = emptyMap())
Link copied to clipboard
fun warning(message: String, category: LogCategory = LogCategory.NETWORK, attributes: Map<String, Any?> = emptyMap())