Documentation
¶
Overview ¶
Package logs are convenience methods for fetching logs from a minikube cluster
Index ¶
- func FindProblems(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.ClusterConfig, ...) map[string][]string
- func Follow(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.ClusterConfig, ...) error
- func IsProblem(line string) bool
- func Output(r cruntime.Manager, bs bootstrapper.Bootstrapper, cfg config.ClusterConfig, ...) error
- func OutputAudit(lines int) error
- func OutputLastStart() error
- func OutputOffline(lines int, logOutput *os.File)
- func OutputProblems(problems map[string][]string, maxLines int, logOutput *os.File)
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 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 OutputAudit ¶ added in v1.26.0
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
OutputOffline outputs logs that don't need a running cluster.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.