logger

package
v0.13.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int

A LogLevel is a logging level.

const (
	LogLevelAll LogLevel = iota
	LogLevelInfo
	LogLevelError
	LogLevelNone
)

type Logger

type Logger interface {
	Info(msg string, kvs ...interface{})
	Error(err error, msg string, kvs ...interface{})
}

Logger represents a logger.

func NewLogger

func NewLogger(l *log.Logger, level LogLevel) Logger

NewLogger returns a new logger.

func NewNopLogger

func NewNopLogger() Logger

NewNopLogger returns a no operation logger.

Jump to

Keyboard shortcuts

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