LoggerConfig

data class LoggerConfig(val name: String = "Foresst", val logsDirectory: Path = LoggerUtils.logsDir, val coroutineScope: CoroutineScope = CoroutineScope(ForesstDispatchers.Logger + SupervisorJob()), val format: (timestamp: String, strategyName: String, loggerName: String, content: Array<out Any>) -> String = { timestamp, strategyName, loggerName, content -> "[$timestamp] - $strategyName - $loggerName - ${content.joinToString { it.toString() }}" }, val logChannelSize: Int = Channel.UNLIMITED, val logChannel: Channel<LogMessage> = Channel(logChannelSize), val logRotation: LoggerDSL.LogRotation.Config = LoggerDSL.LogRotation.Config(true, 30.days, 1.days))(source)

Constructors

Link copied to clipboard
constructor(name: String = "Foresst", logsDirectory: Path = LoggerUtils.logsDir, coroutineScope: CoroutineScope = CoroutineScope(ForesstDispatchers.Logger + SupervisorJob()), format: (timestamp: String, strategyName: String, loggerName: String, content: Array<out Any>) -> String = { timestamp, strategyName, loggerName, content -> "[$timestamp] - $strategyName - $loggerName - ${content.joinToString { it.toString() }}" }, logChannelSize: Int = Channel.UNLIMITED, logChannel: Channel<LogMessage> = Channel(logChannelSize), logRotation: LoggerDSL.LogRotation.Config = LoggerDSL.LogRotation.Config(true, 30.days, 1.days))

Properties

Link copied to clipboard
val coroutineScope: CoroutineScope
Link copied to clipboard
val format: (timestamp: String, strategyName: String, loggerName: String, content: Array<out Any>) -> String
Link copied to clipboard
val logChannel: Channel<LogMessage>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard