logging

package
v0.0.0-...-d02b2c3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgFromLastLogLine

func MsgFromLastLogLine(logFileContent []byte) string

func WrapWithErrorFromLastLogLine

func WrapWithErrorFromLastLogLine(tag string, originalError error, logfileContent []byte) error

func WrapWithErrorFromLastMessage

func WrapWithErrorFromLastMessage(tag string, originalError error, lastMessage string) error

func Writer

func Writer(log lager.Logger) *writer

Types

type LogLine

type LogLine struct {
	Msg   string
	Level string
}

func ForwardRuncLogsToLager

func ForwardRuncLogsToLager(log lager.Logger, tag string, logfileContent []byte) LogLine

func (LogLine) IsError

func (l LogLine) IsError() bool

type Runner

type Runner struct {
	commandrunner.CommandRunner

	Logger lager.Logger
}

func (*Runner) Run

func (runner *Runner) Run(cmd *exec.Cmd) error

type WrappedError

type WrappedError struct {
	Underlying error
	// contains filtered or unexported fields
}

func (WrappedError) Error

func (e WrappedError) Error() string

Jump to

Keyboard shortcuts

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