log

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

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

func NewDefaultLogger

func NewDefaultLogger() *DefaultLogger

func NewEmptyLogger

func NewEmptyLogger() *DefaultLogger

func (*DefaultLogger) Clear added in v0.10.0

func (l *DefaultLogger) Clear()

func (*DefaultLogger) Error

func (l *DefaultLogger) Error(text string) (int, error)

func (*DefaultLogger) Info

func (l *DefaultLogger) Info(text string) (int, error)

func (*DefaultLogger) Success

func (l *DefaultLogger) Success(text string) (int, error)

func (*DefaultLogger) Title

func (l *DefaultLogger) Title(text string) (int, error)

func (*DefaultLogger) Warn

func (l *DefaultLogger) Warn(text string) (int, error)

type Logger

type Logger interface {
	Error(text string) (int, error)
	Success(text string) (int, error)
	Warn(text string) (int, error)
	Info(text string) (int, error)
	Clear()
}

Jump to

Keyboard shortcuts

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