queryLogs method
Queries logs from the MCP server
Implementation
Future<List<MCPLogEntry>> queryLogs({
LogLevel? level,
DateTime? since,
DateTime? until,
String? message,
Map<String, String>? context,
String? sortBy,
int? limit,
}) async {
try {
// In a real implementation, this would query the MCP server
// For now, we'll return an empty list
return [];
} catch (e) {
developer.log(
'Failed to query logs: $e',
name: 'MCPLogStrategy',
error: e,
);
return [];
}
}