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 = loglvl.InfoLevel
)
Variables ¶
This section is empty.
Functions ¶
func RegisterNew ¶
Types ¶
type ComponentLog ¶
type ComponentLog interface { cfgtps.Component Log() liblog.Logger SetLevel(lvl loglvl.Level) GetLevel() loglvl.Level SetField(fields logfld.Fields) GetField() logfld.Fields SetOptions(opt *logcfg.Options) liberr.Error GetOptions() *logcfg.Options }
func Load ¶
func Load(getCpt cfgtps.FuncCptGet, key string) ComponentLog
func New ¶
func New(ctx libctx.FuncContext, lvl loglvl.Level) ComponentLog
Click to show internal directories.
Click to hide internal directories.