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 RegisterNew ¶
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 ¶
func New(ctx libctx.FuncContext, lvl liblog.Level) ComponentLog
Click to show internal directories.
Click to hide internal directories.