SOLogger

class SOLogger(debugSink: (tag: String, message: String) -> Unit? = null, warningSink: (tag: String, message: String) -> Unit? = null, errorSink: (tag: String, message: String) -> Unit? = null)

Internal logger utility class. 3 different levels of logs are provided, where debug logs are excessive logs which should only be enabled when debugging an SDK issue.

Parameters

debugSink

A lambda which gets invoked to print a debug log message. Pass null to disable debug logging.

warningSink

A lambda which gets invoked to print a warning log message. Pass null to disable warning logging.

errorSink

A lambda which gets invoked to print an error log message. Pass null to disable error logging.

Constructors

Link copied to clipboard
constructor(debugSink: (tag: String, message: String) -> Unit? = null, warningSink: (tag: String, message: String) -> Unit? = null, errorSink: (tag: String, message: String) -> Unit? = null)

Functions

Link copied to clipboard
fun d(tag: String, message: String)

Used to print a debug level log message.

Link copied to clipboard
fun e(tag: String, message: String)

Used to print an error level log message.

Link copied to clipboard
fun w(tag: String, message: String)

Used to print a warning level log message.