FileLogger

constructor(context: Context, filePath: String = context.filesDir.path, fileName: String = DEFAULT_FILE_NAME, format: FileFormat = FileFormat.Logcat)

Parameters

context

The context used to access the file directory and creating LogcatLogger instance.

filePath

The directory path where the log file will be created or exists.

fileName

The name of the file to write logs to. Defaults to DEFAULT_FILE_NAME.

format

The format in which logs will be written. Defaults to FileFormat.Logcat.