logger

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Debuger

type Debuger interface {
	Debugf(string, ...interface{})
	Debug(...interface{})
}

type Errorer

type Errorer interface {
	Errorf(string, ...interface{})
	Error(...interface{})
}

type Informer

type Informer interface {
	Infof(string, ...interface{})
	Info(...interface{})
}

type Level

type Level uint8
const (
	Panic Level = iota
	Error
	Warn
	Info
	Debug
)

func (Level) String

func (i Level) String() string

type Logger

type Logger interface {
	Panicer
	Errorer
	Warner
	Informer
	Debuger
	Printer

	GetLogger(name string) Logger
}

Logger : General slog interface for any implementation.

type Panicer

type Panicer interface {
	Panicf(string, ...interface{})
	Panic(...interface{})
}

type Printer

type Printer interface {
	Printf(string, ...interface{})
	Print(...interface{})
}

type Warner

type Warner interface {
	Warnf(string, ...interface{})
	Warn(...interface{})
}

Jump to

Keyboard shortcuts

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