log

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package log enables logging for Iter8.

Package log provides primitives for logging.

Index

Constants

This section is empty.

Variables

Level is the log level for Iter8 CLI

Functions

This section is empty.

Types

type Iter8Logger

type Iter8Logger struct {
	*logrus.Logger
}

Iter8Logger inherits all methods from logrus logger. Provides additional methods for standardized Iter8 logging.

var Logger *Iter8Logger

Logger to be used in all of Iter8.

func (*Iter8Logger) WithIndentedTrace added in v0.10.9

func (l *Iter8Logger) WithIndentedTrace(t string) *logrus.Entry

WithIndentedTrace yields a log entry with a formatted indent embedded in it.

func (*Iter8Logger) WithStackTrace

func (l *Iter8Logger) WithStackTrace(t string) *logrus.Entry

WithStackTrace yields a log entry with a formatted stack trace field embedded in it.

type StackTrace

type StackTrace struct {

	// Trace is the raw trace
	Trace string
	// contains filtered or unexported fields
}

StackTrace is the trace from external components like a shell scripts run by an Iter8 task.

func (*StackTrace) String

func (st *StackTrace) String() string

String processes stack traces by prefixing each line of the trace with prefix. This enables other tools like grep to easily filter out these traces if needed.

Jump to

Keyboard shortcuts

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