logs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Debug LogLevel = 0
	Info           = 1
	Warn           = 2
	Error          = 3
)

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(writer io.StringWriter, logLevel LogLevel) *defaultLogger

Types

type LogLevel

type LogLevel int

func (LogLevel) String

func (ll LogLevel) String() string

type Logger

type Logger interface {
	Debug(ctx context.Context, msg string, args ...interface{})
	Info(ctx context.Context, msg string, args ...interface{})
	Warn(ctx context.Context, msg string, args ...interface{})
	Error(ctx context.Context, msg string, args ...interface{})
}

Jump to

Keyboard shortcuts

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