android-components / mozilla.components.support.base.log.sink / AndroidLogSink

AndroidLogSink

class AndroidLogSink : LogSink (source)

LogSink implementation that writes to Android’s log.

Parameters

defaultTag - A default tag that should be used for all logging calls without tag.

Constructors

Name Summary
<init> AndroidLogSink(defaultTag: String = "App")
LogSink implementation that writes to Android’s log.

Functions

Name Summary
log fun log(priority: Priority, tag: String?, throwable: Throwable?, message: String?): Unit
Low-level logging call.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.