logger

package
v0.0.0-...-5eac7db Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int
const (
	ERROR Level = iota
	WARN
	INFO
	DEBUG
	TRACE
)

type Logger

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

func NewLogger

func NewLogger(level Level) *Logger

func NewLoggerWithStringLogLevel

func NewLoggerWithStringLogLevel(s string) *Logger

func (Logger) Debug

func (l Logger) Debug(m string, f ...interface{})

func (Logger) Error

func (l Logger) Error(m string, f ...interface{})

func (Logger) Info

func (l Logger) Info(m string, f ...interface{})

func (Logger) Trace

func (l Logger) Trace(m string, f ...interface{})

func (Logger) Warn

func (l Logger) Warn(m string, f ...interface{})

Jump to

Keyboard shortcuts

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