Documentation ¶
Index ¶
- func NewKubernetesLogFormatter(config Config, colorPicker output.ColorPicker, isMuted func() bool, ...) log.Formatter
- type Config
- type Formatter
- type LogAggregator
- func (a *LogAggregator) GetFormatter() Formatter
- func (a *LogAggregator) IsMuted() bool
- func (a *LogAggregator) Mute()
- func (a *LogAggregator) RegisterArtifacts(artifacts []graph.Artifact)
- func (a *LogAggregator) SetSince(t time.Time)
- func (a *LogAggregator) Start(ctx context.Context, out io.Writer) error
- func (a *LogAggregator) Stop()
- func (a *LogAggregator) Unmute()
- type Logger
- type NoopLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKubernetesLogFormatter ¶ added in v1.30.0
func NewKubernetesLogFormatter(config Config, colorPicker output.ColorPicker, isMuted func() bool, pod *v1.Pod, container v1.ContainerStatus) log.Formatter
Types ¶
type LogAggregator ¶
type LogAggregator struct {
// contains filtered or unexported fields
}
LogAggregator aggregates the logs for all the deployed pods.
func NewLogAggregator ¶
func NewLogAggregator(cli *kubectl.CLI, podSelector kubernetes.PodSelector, namespaces *[]string, config Config) *LogAggregator
NewLogAggregator creates a new LogAggregator for a given output.
func (*LogAggregator) GetFormatter ¶ added in v1.30.0
func (a *LogAggregator) GetFormatter() Formatter
func (*LogAggregator) IsMuted ¶
func (a *LogAggregator) IsMuted() bool
IsMuted says if the logs are to be muted.
func (*LogAggregator) RegisterArtifacts ¶ added in v1.27.0
func (a *LogAggregator) RegisterArtifacts(artifacts []graph.Artifact)
RegisterArtifacts tracks the provided build artifacts in the colorpicker
func (*LogAggregator) SetSince ¶
func (a *LogAggregator) SetSince(t time.Time)
type NoopLogger ¶ added in v1.30.0
type NoopLogger struct {
*log.NoopLogger
}
NoopLogger is used in tests. It will never retrieve any logs from any resources.
func (*NoopLogger) GetFormatter ¶ added in v1.30.0
func (*NoopLogger) GetFormatter() Formatter
Click to show internal directories.
Click to hide internal directories.