LogBuffer

class LogBuffer(filePath: Path, bufferSize: Int = 8 * 1024, flushInterval: Long = 1000, autoFlush: Boolean = false)(source)

Constructors

Link copied to clipboard
constructor(filePath: Path, bufferSize: Int = 8 * 1024, flushInterval: Long = 1000, autoFlush: Boolean = false)

Functions

Link copied to clipboard
suspend fun close()
Link copied to clipboard
suspend fun flush()
Link copied to clipboard
Link copied to clipboard
fun size(): Int
Link copied to clipboard
suspend fun write(data: String): Int
suspend fun write(data: String, charset: Charset): Int
Link copied to clipboard
suspend fun writeBatch(lines: List<String>): Int