logger

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFields

type LogFields map[string]interface{}

type LogFn

type LogFn = func(message string)

type LogLevel

type LogLevel int8
const (
	LOG_LEVEL_DEBUG LogLevel = iota
	LOG_LEVEL_INFO
	LOG_LEVEL_ERROR
	LOG_LEVEL_PANIC
	LOG_DISABLED
)

type LogfFn

type LogfFn = func(format string, values ...interface{})

type Logger

type Logger interface {
	SetLogLevel(level LogLevel)
	GetLogLevel() LogLevel

	Panic(message string)
	Panicf(format string, values ...interface{})
	Error(message string)
	Errorf(format string, values ...interface{})
	Info(message string)
	Infof(format string, values ...interface{})
	Debug(message string)
	Debugf(format string, values ...interface{})

	WithInterface(key string, value interface{}) Logger
	WithFields(fields LogFields) Logger
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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