FileLogger

class FileLogger(rotate: FileLogger.Rotate = Rotate.Daily, limit: FileLogger.Limit = Limit.Files(10), logPath: String? = null) : Logger

Log to files in logPath with rotate rotation and imposed retention limit.

Parameters

rotate

Log file rotation, defaults to Rotate.Daily

limit

Log file retention limit, defaults to Limit.Files

logPath

Log file path, defaults to a platform-specific temporary directory

Constructors

Link copied to clipboard
constructor(rotate: FileLogger.Rotate = Rotate.Daily, limit: FileLogger.Limit = Limit.Files(10), logPath: String? = null)

Types

Link copied to clipboard
sealed class Limit

Log file storage limit.

Link copied to clipboard
sealed class Rotate

Log file rotation.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun log(level: Log.Level, tag: String = "", message: String?, throwable: Throwable?)