Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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))
Link copied to clipboard
object LoggerUtils
Link copied to clipboard
data class LogMessage(val content: Array<out Any>, val logToConsole: Boolean, val timestamp: Instant = Clock.System.now(), val strategy: LoggingStrategy)
Link copied to clipboard