DirectoryLoggerStrategy

LoggerStrategy that creates a file in the chosen directory and saves the logs.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

directoryDocumentFile

representation of the directory where files with logs will be saved. Note that the DocumentFile created using DocumentFile.fromSingleUri is not supported.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun log(message: String)

Saves the message to the file.

open override fun log(message: List<String>)

Saves the message to the file. Each list element represents one line.

Link copied to clipboard
open override fun start(fileExtension: FileExtension)