logger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Logger{
	// contains filtered or unexported fields
}

Functions

func Debug

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

func Error

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

func Info

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

func Warn

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

Types

type Level

type Level int
const (
	ErrorLevel Level = iota
	WarnLevel
	InfoLevel
	DebugLevel
	AllLevel
)

type Logger

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

func (Logger) Debug

func (l Logger) Debug(format string, args ...interface{})

func (Logger) Error

func (l Logger) Error(format string, args ...interface{})

func (Logger) Info

func (l Logger) Info(format string, args ...interface{})

func (*Logger) Level

func (l *Logger) Level(level Level)

func (Logger) Warn

func (l Logger) Warn(format string, args ...interface{})

Jump to

Keyboard shortcuts

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