newSession
open fun newSession(@NonNull context: Context, @NonNull authority: Uri, @NonNull key: String, @Nullable name: String): LocalLogSession
Creates new logger session. Must be created before appending log entries. If the nRF Logger application is not installed the method will return null.
Return
the LogContract that can be used to append log entries or nullif MCP is not installed. The null value can be next passed to logging methods
Parameters
context
the context (activity, service or application)
authority
the LocalLogContentProvider authority
key
the session key, which is used to group sessions
name
the human-readable session name