Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorParamsEmpty liberr.CodeError = iota + libcfg.MinErrorComponentLog ErrorParamsInvalid ErrorConfigInvalid ErrorComponentNotInitialized ErrorStartLog ErrorReloadLog )
View Source
const ( DefaultLevel = liblog.InfoLevel ComponentType = "log" )
Variables ¶
This section is empty.
Functions ¶
func IsCodeError ¶
func IsCodeError() bool
func RegisterNew ¶
func SetDefaultConfig ¶
func SetDefaultConfig(cfg []byte)
Types ¶
type ComponentLog ¶
type ComponentLog interface { libcfg.Component Log() liblog.Logger SetLevel(lvl liblog.Level) SetField(fields liblog.Fields) SetOptions(opt *liblog.Options) liberr.Error }
func Load ¶
func Load(getCpt libcfg.FuncComponentGet, key string) ComponentLog
type DefaultModel ¶
Click to show internal directories.
Click to hide internal directories.