readLogTail function
Returns the last count lines of the session log, decoded tolerantly.
Implementation
List<String> readLogTail({int count = 10}) {
final lines = readLinesTolerant(logFile);
return lines.length > count ? lines.sublist(lines.length - count) : lines;
}