tail

fun tail(output: String, lines: Int): Pair<String, Boolean>(source)

The last lines lines of output with secrets masked, cut from the front to at most MAX_TAIL_CHARS; the flag says whether anything was dropped.