logs

package
v0.0.0-...-ca992e9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BasicLevel = []LogLevel{Info, Warn, Fail}
View Source
var EveryLevel = []LogLevel{Info, Warn, Fail, Data}

Functions

This section is empty.

Types

type LogLevel

type LogLevel int
const (
	Info LogLevel = iota
	Warn
	Fail
	Data
)

type Logging

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

func NewLogging

func NewLogging(name string, show ...LogLevel) *Logging

func NewLoggingWith

func NewLoggingWith(name string, writer io.Writer, show ...LogLevel) *Logging

func (*Logging) Data

func (log *Logging) Data(message ...interface{})

func (*Logging) DataF

func (log *Logging) DataF(format string, a ...interface{})

func (*Logging) Fail

func (log *Logging) Fail(message ...interface{})

func (*Logging) FailF

func (log *Logging) FailF(format string, a ...interface{})

func (*Logging) Info

func (log *Logging) Info(message ...interface{})

func (*Logging) InfoF

func (log *Logging) InfoF(format string, a ...interface{})

func (*Logging) Name

func (log *Logging) Name() string

func (*Logging) Show

func (log *Logging) Show() []LogLevel

func (*Logging) Warn

func (log *Logging) Warn(message ...interface{})

func (*Logging) WarnF

func (log *Logging) WarnF(format string, a ...interface{})

Jump to

Keyboard shortcuts

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