UALog

object UALog

Shared logging wrapper for all Airship log entries. This class serves to consolidate the tag and log level in a single location.

Properties

Link copied to clipboard

The log handler.

Link copied to clipboard

The log level

Link copied to clipboard

The logger's tag.

Functions

Link copied to clipboard
fun d(message: String, vararg args: Any?)
fun d(t: Throwable, message: String, vararg args: Any?)

Send a debug log message.

fun d(throwable: Throwable? = null, message: () -> String)

Sends a debug log.

Link copied to clipboard
fun e(t: Throwable, message: String, vararg args: Any?)

Send an error log message.

fun e(throwable: Throwable? = null, message: () -> String)

Sends a error log.

Link copied to clipboard
fun i(message: String, vararg args: Any)

Send an info log message.

fun i(throwable: Throwable? = null, message: () -> String)

Sends a info log.

Link copied to clipboard
fun log(logLevel: Int, throwable: Throwable? = null, message: () -> String)

Sends a log.

Link copied to clipboard
fun parseLogLevel(value: String?, defaultValue: Int): Int

Parses the log level from a String.

Link copied to clipboard
fun v(message: String, vararg args: Any?)

Send a verbose log message.

fun v(throwable: Throwable? = null, message: () -> String)

Sends a verbose log.

Link copied to clipboard
fun w(message: String, vararg args: Any?)

Send a warning log message.

fun w(throwable: Throwable? = null, message: () -> String)

Sends a warn log.