logger

package
v1.39.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerLogFormatter

type DockerLogFormatter struct {
	// contains filtered or unexported fields
}

func NewDockerLogFormatter

func NewDockerLogFormatter(colorPicker output.ColorPicker, tracker *tracker.ContainerTracker, isMuted func() bool, id string) *DockerLogFormatter

func (*DockerLogFormatter) Name

func (d *DockerLogFormatter) Name() string

func (*DockerLogFormatter) PrintLine

func (d *DockerLogFormatter) PrintLine(out io.Writer, line string)

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(ctx context.Context, tracker *tracker.ContainerTracker, cfg docker.Config) (*Logger, error)

func (*Logger) IsMuted

func (l *Logger) IsMuted() bool

func (*Logger) Mute

func (l *Logger) Mute()

Mute mutes the logs.

func (*Logger) RegisterArtifacts

func (l *Logger) RegisterArtifacts(artifacts []graph.Artifact)

func (*Logger) SetSince

func (l *Logger) SetSince(time.Time)

func (*Logger) Start

func (l *Logger) Start(ctx context.Context, out io.Writer) error

func (*Logger) Stop

func (l *Logger) Stop()

func (*Logger) Unmute

func (l *Logger) Unmute()

Unmute unmutes the logs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL