redirectBotLogToDirectory

fun redirectBotLogToDirectory(dir: <Error class: unknown class> = File("logs"), retain: Long = 1.weeksToMillis, identity: (bot: Bot) -> String = { "Bot ${it.id}" })

重定向 Bot 日志 到指定目录. 若目录不存在将会自动创建 (File.mkdirs)

See also