log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	DebugLevel bool
	Writer     io.Writer
}

func NewLogger

func NewLogger(debug bool) *Logger

func (*Logger) Debug

func (l *Logger) Debug(message ...interface{})

func (*Logger) Debugf

func (l *Logger) Debugf(format string, message ...interface{})

func (*Logger) Error

func (l *Logger) Error(message ...interface{})

func (*Logger) Errorf

func (l *Logger) Errorf(format string, message ...interface{})

func (*Logger) Info

func (l *Logger) Info(message ...interface{})

func (*Logger) InfoMap

func (l *Logger) InfoMap(key, value string)

func (*Logger) Infof

func (l *Logger) Infof(format string, message ...interface{})

func (*Logger) SetWriter

func (l *Logger) SetWriter(writer io.Writer)

func (*Logger) Warn

func (l *Logger) Warn(message ...interface{})

func (*Logger) Warnf

func (l *Logger) Warnf(format string, message ...interface{})

type Status

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

func NewStatus

func NewStatus(logger *Logger) *Status

func (*Status) Error

func (s *Status) Error(msg ...string)

func (*Status) Start

func (s *Status) Start(msg string)

func (*Status) Stop

func (s *Status) Stop()

func (*Status) Success

func (s *Status) Success(msg ...string)

Jump to

Keyboard shortcuts

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