manager

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDefaultLogger = errors.New("log manager: no default logger")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Default string

	Channels map[string]func() log.Logger
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config) *Manager

func (*Manager) Channel

func (m *Manager) Channel(name string) log.Logger

func (*Manager) Log

func (m *Manager) Log(level log.Level, keyvals ...interface{}) error

Jump to

Keyboard shortcuts

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