Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter handles formatting and printing of log entries with dynamic column alignment.
func NewFormatter ¶
func (*Formatter) PrintEntry ¶
func (f *Formatter) PrintEntry(entry api.ServiceLogEntry)
PrintEntry prints a single log entry with proper formatting.
type Options ¶
type Options struct {
Files []string
Follow bool
Tail string
Since string
Until string
UTC bool
Machines []string
}
Options describes how and what logs we are requesting.
type ServiceArg ¶
ServiceArg pairs a service name with the list of container filters parsed from `uc service logs` arguments. An empty Containers slice means "stream logs from all containers of this service".
func ParseServiceArgs ¶
func ParseServiceArgs(args []string) ([]ServiceArg, error)
ParseServiceArgs groups raw `uc service logs` positional arguments into per-service entries, preserving first-seen order. Each argument is either a service name (e.g. "web") or a service/container reference (e.g. "web/61d57fd3428f"). Arguments for the same service are merged: if any argument for a service lacks a container suffix, all containers of that service are streamed regardless of any other service/container arguments for it.