log

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(a ...interface{})

func Debugf

func Debugf(template string, a ...interface{})

func DisableColor

func DisableColor()

func DisableDebugMessages

func DisableDebugMessages()

func DisableOutput

func DisableOutput()

func EnableColor

func EnableColor()

func EnableDebugMessages

func EnableDebugMessages()

func EnableOutput

func EnableOutput()

func Error

func Error(a ...interface{})

func Errorf

func Errorf(template string, a ...interface{})

func Fatal

func Fatal(a ...interface{})

func Info

func Info(a ...interface{})

func Infof

func Infof(template string, a ...interface{})

func Print

func Print(a ...interface{})

func SetOutput

func SetOutput(output io.Writer)

func Warning

func Warning(a ...interface{})

func Warningf

func Warningf(template string, a ...interface{})

Types

type LoggerOption

type LoggerOption = func(logger *PrefixedLogger)

func WithOutput

func WithOutput(writer io.Writer) LoggerOption

func WithStyle

func WithStyle(style *pterm.Style) LoggerOption

type PrefixedLogger

type PrefixedLogger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(name string, options ...LoggerOption) *PrefixedLogger

func (*PrefixedLogger) Debug

func (logger *PrefixedLogger) Debug(v ...interface{})

func (*PrefixedLogger) Debugf

func (logger *PrefixedLogger) Debugf(template string, v ...interface{})

func (*PrefixedLogger) Error

func (logger *PrefixedLogger) Error(v ...interface{})

func (*PrefixedLogger) Errorf

func (logger *PrefixedLogger) Errorf(template string, v ...interface{})

func (*PrefixedLogger) Info

func (logger *PrefixedLogger) Info(v ...interface{})

func (*PrefixedLogger) Infof

func (logger *PrefixedLogger) Infof(template string, v ...interface{})

func (*PrefixedLogger) PrintResponse

func (logger *PrefixedLogger) PrintResponse(response *http.Response)

func (*PrefixedLogger) Warning

func (logger *PrefixedLogger) Warning(v ...interface{})

func (*PrefixedLogger) Warningf

func (logger *PrefixedLogger) Warningf(template string, v ...interface{})

Jump to

Keyboard shortcuts

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