package infra import "time" // LogEntry representa una entrada de log estructurada serializable a JSON. // Se usa como modelo canonico para tests y para pipelines que procesan logs. type LogEntry struct { Timestamp time.Time `json:"timestamp"` Level string `json:"level"` Message string `json:"message"` Fields map[string]any `json:"fields,omitempty"` }