logger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package logger provides console output for libhkbuildpack operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identifiable

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 Log added in v0.0.2

type Log struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Log supports logging related methods and state

func New added in v0.0.2

func New(l logLevelEnalbler) *Log

func NewFromWriters added in v0.0.2

func NewFromWriters(debug, info io.Writer) *Log

func (Log) Debug added in v0.0.2

func (l Log) Debug(format string, args ...interface{})

func (Log) Error added in v0.0.2

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

Error prints an error message to the console if an info logger is provided.

func (Log) FirstLine added in v0.0.2

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

FirstLine prints a line with a leading arrow.

func (Log) Info added in v0.0.2

func (l Log) Info(format string, args ...interface{})

func (Log) IsDebugEnabled added in v0.0.2

func (l Log) IsDebugEnabled() bool

func (Log) PrettyIdentity added in v0.0.2

func (l Log) PrettyIdentity(v Identifiable) string

func (Log) SubsequentLine added in v0.0.2

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

SubsequentLine prints indented output without the leading arrow.

func (Log) Warning added in v0.0.2

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

Warning prints a warning message

Jump to

Keyboard shortcuts

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