nRFLoggerTree

open class nRFLoggerTree : Timber.Tree

A Timber tree that logs messages to nRF Logger app or no.nordicsemi.android.log.localprovider.LocalLogContentProvider.

If neither can be found, the logs will be ignored.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @NonNull key: String, @Nullable name: String)
Creates a new instance of nRFLoggerTree.
constructor(@NonNull context: Context, @Nullable profile: String, @NonNull key: String, @Nullable name: String)
Creates a new instance of nRFLoggerTree.
constructor(@Nullable session: ILogSession)
Creates a new instance of nRFLoggerTree.
constructor(@NonNull context: Context, @Nullable uri: Uri)
Creates a new instance of nRFLoggerTree.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun d(message: String, args: Array<Any>)
Link copied to clipboard
open fun e(message: String, args: Array<Any>)
Link copied to clipboard
open fun i(message: String, args: Array<Any>)
Link copied to clipboard
open fun log(priority: Int, message: String, args: Array<Any>)
Link copied to clipboard
open fun newSession(@NonNull key: String, @Nullable name: String)
open fun newSession(@Nullable profile: String, @NonNull key: String, @Nullable name: String)
Reuses the existing tree to log to a new log session.
Link copied to clipboard
open fun setLoggingTagsEnabled(enable: Boolean)
Sets whether the non-null tags should be logged as: [<tag>] <message>
Link copied to clipboard
open fun v(message: String, args: Array<Any>)
Link copied to clipboard
open fun w(message: String, args: Array<Any>)
Link copied to clipboard
open fun wtf(message: String, args: Array<Any>)