log

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + libcfg.MinErrorComponentLog
	ErrorParamInvalid
	ErrorConfigInvalid
	ErrorComponentNotInitialized
	ErrorStartLog
	ErrorReloadLog
)
View Source
const (
	ComponentType = "head"
)
View Source
const (
	DefaultLevel = liblog.InfoLevel
)

Variables

This section is empty.

Functions

func Register

func Register(cfg libcfg.Config, key string, cpt ComponentLog)

func RegisterNew

func RegisterNew(ctx libctx.FuncContext, cfg libcfg.Config, key string, lvl liblog.Level)

Types

type ComponentLog

type ComponentLog interface {
	cfgtps.Component

	Log() liblog.Logger

	SetLevel(lvl liblog.Level)
	GetLevel() liblog.Level

	SetField(fields liblog.Fields)
	GetField() liblog.Fields

	SetOptions(opt *liblog.Options) liberr.Error
	GetOptions() *liblog.Options
}

func Load

func Load(getCpt cfgtps.FuncCptGet, key string) ComponentLog

func New

Jump to

Keyboard shortcuts

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