Log

data class Log(val directory: (currentDate: String) -> Path = { currentDate -> "./logs/$currentDate/".toPath() }, val rotation: LuminaConfig.Log.RotationConfig = RotationConfig(true, 30.days, 1.days), val channelSize: Int = Channel.UNLIMITED, val channel: Channel<Message> = Channel(channelSize))(source)

Constructors

Link copied to clipboard
constructor(directory: (currentDate: String) -> Path = { currentDate -> "./logs/$currentDate/".toPath() }, rotation: LuminaConfig.Log.RotationConfig = RotationConfig(true, 30.days, 1.days), channelSize: Int = Channel.UNLIMITED, channel: Channel<Message> = Channel(channelSize))

Types

Link copied to clipboard
data class RotationConfig(val enabled: Boolean, val duration: Duration, val interval: Duration)

Properties

Link copied to clipboard
val channel: Channel<Message>
Link copied to clipboard
Link copied to clipboard
val directory: (currentDate: String) -> Path
Link copied to clipboard