logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = NewSimple(nil)

Functions

This section is empty.

Types

type Level

type Level int
const (
	All Level = iota
	Debug
	Info
	Warn
	Error
)

type Logger

type Logger interface {
	Info(format string, args ...interface{})
	Warn(format string, args ...interface{})
	Debug(format string, args ...interface{})
	Error(format string, args ...interface{})
	Level(level Level)
}

type Simple

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

func NewSimple

func NewSimple(out io.Writer) *Simple

func (*Simple) Debug

func (s *Simple) Debug(format string, args ...interface{})

func (*Simple) Error

func (s *Simple) Error(format string, args ...interface{})

func (*Simple) Info

func (s *Simple) Info(format string, args ...interface{})

func (*Simple) Level

func (s *Simple) Level(level Level)

func (*Simple) Warn

func (s *Simple) Warn(format string, args ...interface{})

Jump to

Keyboard shortcuts

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