logger

package
v1.7.29 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 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_WARN
	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{})
	Warn(message string)
	Warnf(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