# logs

Get container logs.

```rhai
container.logs() -> CommandResult
```

## Returns

Returns a `CommandResult` with the container logs.

## Examples

```rhai
let container = nerdctl_container_from_image("web", "nginx:latest")
    .with_port("8080:80")
    .build();
    
container.start();

// Get logs
let result = container.logs();
print("Container logs:");
print(result.stdout);
```

## Notes

- Returns all logs from container startup
- Works on both running and stopped containers
- Provides detailed error context if logs cannot be retrieved
