logger

package
v1.91.23 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 11

Documentation

Index

Constants

View Source
const (
	BodyIndent   = "    "
	HeaderIndent = "  "
)

Variables

This section is empty.

Functions

func PrettyIdentity added in v1.70.0

func PrettyIdentity(v Identifiable) string

PrettyIdentity formats a standard pretty identity of a type.

Types

type Identifiable added in v1.17.0

type Identifiable interface {
	// Identity is the method that returns the required name and optional description that make up identity.
	Identity() (name string, description string)
}

Identifiable is an interface that indicates that a type has an identity.

type Logger

type Logger struct {
	logger.Logger
}

Logger is an extension to libbuildpack.Logger to add additional functionality.

func (Logger) Body added in v1.70.0

func (l Logger) Body(format string, args ...interface{})

Body prints the log message with each line indented four spaces.

func (Logger) BodyError added in v1.70.0

func (l Logger) BodyError(format string, args ...interface{})

BodyError prints the log message colored red and bold with each line indented four spaces.

func (Logger) BodyIndent added in v1.79.0

func (l Logger) BodyIndent(format string, args ...interface{}) string

BodyIndent indents each line of a log message to the BodyIndent offset.

func (Logger) BodyWarning added in v1.70.0

func (l Logger) BodyWarning(format string, args ...interface{})

BodyWarning prints the log message colored yellow and bold with each line indented four spaces.

func (Logger) Error deprecated added in v1.43.0

func (l Logger) Error(format string, args ...interface{})

Error prints the log message with the error eye catcher.

Deprecated: Use HeaderError or BodyError

func (Logger) FirstLine deprecated

func (l Logger) FirstLine(format string, args ...interface{})

FirstLine prints the log messages with the first line eye catcher.

Deprecated: Use Title

func (Logger) Header added in v1.70.0

func (l Logger) Header(format string, args ...interface{})

Header prints the log message indented two spaces, with an empty line above it.

func (Logger) HeaderError added in v1.70.0

func (l Logger) HeaderError(format string, args ...interface{})

HeaderError prints the log message colored red and bold, indented two spaces, with an empty line above it.

func (Logger) HeaderWarning added in v1.70.0

func (l Logger) HeaderWarning(format string, args ...interface{})

HeaderWarning prints the log message colored yellow and bold, indented two spaces, with an empty line above it.

func (Logger) LaunchConfiguration added in v1.91.21

func (l Logger) LaunchConfiguration(format string, defaultValue string)

func (Logger) PrettyIdentity deprecated added in v1.17.0

func (l Logger) PrettyIdentity(v Identifiable) string

PrettyIdentity formats a standard pretty identity of a type.

Deprecated: Use Title

func (Logger) SubsequentLine deprecated

func (l Logger) SubsequentLine(format string, args ...interface{})

SubsequentLine prints log message with the subsequent line indent.

Deprecated: Use Body

func (Logger) TerminalError added in v1.89.5

func (l Logger) TerminalError(v Identifiable, format string, args ...interface{})

Terminal error prints the build description colored red and bold, flush left, with an empty line above it, followed by the log message message red and bold, and indented two spaces.

func (Logger) Title added in v1.70.0

func (l Logger) Title(v Identifiable)

Title prints the buildpack description flush left, with an empty line above it.

func (Logger) Warning deprecated added in v1.43.0

func (l Logger) Warning(format string, args ...interface{})

Warning prints the log message with the warning eye catcher.

Deprecated: Use HeaderWarning or BodyWarning

Jump to

Keyboard shortcuts

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