logs

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 19 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) error

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

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