Back to godoc.org

Package logging

v0.0.0-...-3da697a
Latest Go to latest

The highest tagged major version is .

Published: Oct 15, 2020 | License: Apache-2.0 | Module: code.cloudfoundry.org/guardian

Index

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

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier