---
name: docker_log_line
lang: go
domain: infra
version: "1.0.0"
algebraic: product
definition: |
  type DockerLogLine struct {
      Stream    string
      Timestamp string
      Line      string
  }
description: "Linea de log de un contenedor Docker con su stream de origen (stdout/stderr), timestamp RFC3339 opcional y contenido."
tags: [docker, docker-agent, logs, infra]
uses_types: []
file_path: "functions/infra/docker_log_line.go"
---

## Ejemplo

```go
line := DockerLogLine{
    Stream:    "stdout",
    Timestamp: "2026-05-23T12:00:00.000000000Z",
    Line:      "server started on :8080",
}
```

## Notas

`Timestamp` solo se rellena si `DockerLogsOpts.Timestamps = true`. El valor viene del prefijo que el daemon Docker antepone a cada linea antes del demux de frame.
