queryLogs method

Future<List<MCPLogEntry>> queryLogs({
  1. LogLevel? level,
  2. DateTime? since,
  3. DateTime? until,
  4. String? message,
  5. Map<String, String>? context,
  6. String? sortBy,
  7. int? limit,
})

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 [];
  }
}