logger

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v1.0.0

type Logger interface {
	// Debug logs the vals at Debug level.
	Debug(vals ...interface{})

	// Debugf logs the formatted message at Debug level.
	Debugf(format string, vals ...interface{})

	// Debugd logs the message with details at Debug level.
	Debugd(msg string, details ...interface{})

	// Info logs the vals at Info level.
	Info(vals ...interface{})

	// Infof logs the formatted message at Info level.
	Infof(format string, vals ...interface{})

	// Infod logs the message with details at Info level.
	Infod(msg string, details ...interface{})

	// Warn logs the vals at Warn level.
	Warn(vals ...interface{})

	// Warnf logs the formatted message at Warn level.
	Warnf(format string, vals ...interface{})

	// Warnd logs the message with details at Warn level.
	Warnd(msg string, details ...interface{})

	// Error logs the vals at Error level.
	Error(vals ...interface{})

	// Errorf logs the formatted message at Error level.
	Errorf(format string, vals ...interface{})

	// Errord logs the message with details at Error level.
	Errord(msg string, details ...interface{})

	// Fatal logs the vals at Fatal level, then calls os.Exit(1).
	Fatal(vals ...interface{})

	// Fatalf logs the formatted message at Fatal level, then calls os.Exit(1).
	Fatalf(format string, vals ...interface{})

	// Fatald logs the message with details at Fatal level, then calls os.Exit(1).
	Fatald(msg string, details ...interface{})

	// Close calls finalizer of logger implementations.
	Close() error
}

type Type

type Type uint8
const (
	Unknown Type = iota
	GLG
	ZAP
)

func Atot

func Atot(str string) Type

func (Type) String

func (m Type) String() string

Jump to

Keyboard shortcuts

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