SingleFile
class SingleFile(val folder: String = getDefaultLogFolder(), val fileName: String = DEFAULT_FILE_BASE_NAME, val fileExtension: String = DEFAULT_FILE_EXTENSION, maxFileSizeInBytes: Int = DEFAULT_MAX_FILE_SIZE_IN_BYTES, trimFactor: Float = 0.5f) : FileLoggerSetup
Writes all logs to a single file.
When the file reaches maxFileSizeInBytes, it is trimmed instead of creating archive files. Approximately the newest trimFactor portion of the file is kept.
Defaults:
fileName = "log"
fileExtension = "txt"
maxFileSizeInBytes = 5 MB
trimFactor = 0.5 (keep roughly 50%)
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getRollOverType(currentPath: Path?, event: FileLogger.Event.Log): BaseFileLoggerSetup.RollOverType