logger

package
v0.0.0-...-a33a8dd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Key   string
	Value any
	Type  Type
}

type Level

type Level int8
const (
	DebugLevel Level = iota - 1
	WarnLevel
	ErrorLevel
	InfoLevel
	FatalLevel
	PanicLevel
)

type Logger

type Logger interface {
	Log(level Level, msg string, args ...Field)
	Sync() error
}

type Type

type Type int
const (
	Int Type = iota
	Int8
	Int16
	Int32
	Int64
	Uint
	Uint8
	Uint16
	Uint32
	Uint64
	Float32
	Float64
	String
	Any
	Map
	Slice
	Error
)

Jump to

Keyboard shortcuts

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