Get logs filtered by level
List<LogEntry> getLogsByLevel(LogLevel level) { return _logs.where((log) => log.level.index >= level.index).toList(); }