windowOrNull

fun windowOrNull(retentionDays: Int): Duration?(source)

The retention window for retentionDays, or null when logs are never pruned.