archiveAndPrune

fun archiveAndPrune(logsDir: Path, maxArchives: Int = 10, clock: Clock = Clock.systemDefaultZone())