logs

package
v1.33.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 20 Imported by: 4

Documentation

Overview

Package logs are convenience methods for fetching logs from a minikube cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProblems

func FindProblems(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.ClusterConfig, cr logRunner) map[string][]string

FindProblems finds possible root causes among the logs

func Follow

func Follow(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.ClusterConfig, cr logRunner, logOutput io.Writer) error

Follow follows logs from multiple files in tail(1) format

func IsProblem

func IsProblem(line string) bool

IsProblem returns whether this line matches a known problem

func Output

func Output(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.ClusterConfig, runner command.Runner, lines int, logOutput *os.File)

Output displays logs from multiple sources in tail(1) format

func OutputAudit added in v1.26.0

func OutputAudit(lines int) error

outputAudit displays the audit logs.

func OutputLastStart added in v1.30.0

func OutputLastStart() error

outputLastStart outputs the last start logs.

func OutputOffline added in v1.19.0

func OutputOffline(lines int, logOutput *os.File)

OutputOffline outputs logs that don't need a running cluster.

func OutputProblems

func OutputProblems(problems map[string][]string, maxLines int, logOutput *os.File)

OutputProblems outputs discovered problems.

Types

This section is empty.

Jump to

Keyboard shortcuts

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