treessence / fr.bipi.tressence.file / FileLoggerTree / Builder

Builder

class Builder

Constructors

<init>

Builder()

Functions

appendToFile

fun appendToFile(b: Boolean): FileLoggerTree.Builder

Specify an option for FileHandler creation

build

fun build(): FileLoggerTree

Create the file logger tree with options specified.

buildQuietly

fun buildQuietly(): Tree

Create the file logger tree with options specified.

withDir

fun withDir(d: File): FileLoggerTree.Builder

Specify a custom dir name

withDirName

fun withDirName(dn: String): FileLoggerTree.Builder

Specify a custom dir name

withFileLimit

fun withFileLimit(f: Int): FileLoggerTree.Builder

Specify a custom file number limit

withFileName

fun withFileName(fn: String): FileLoggerTree.Builder

Specify a custom file name

withFilter

fun withFilter(filter: Filter): FileLoggerTree.Builder

Specify a log filter

withFormatter

fun withFormatter(formatter: Formatter): FileLoggerTree.Builder

Specify a log formatter

withMinPriority

fun withMinPriority(p: Int): FileLoggerTree.Builder

Specify a priority from which it can start logging

withSizeLimit

fun withSizeLimit(nbBytes: Int): FileLoggerTree.Builder

Specify a custom file size limit

Companion Object Properties

NB_FILE_LIMIT

const val NB_FILE_LIMIT: Int

SIZE_LIMIT

const val SIZE_LIMIT: Int