Documentation
¶
Overview ¶
实现服务中心规定的服务注册要求,遵循注册协议 engine.Container
Index ¶
- Constants
- func Blue(output interface{})
- func Bluef(output ...interface{})
- func Cyan(output interface{})
- func Cyanf(output ...interface{})
- func Debug(out ...interface{})
- func Debugf(out ...interface{})
- func Error(out ...interface{})
- func Errorf(out ...interface{})
- func Fatal(out ...interface{})
- func Fatalf(out ...interface{})
- func Green(output interface{})
- func Greenf(output ...interface{})
- func Info(out ...interface{})
- func Infof(out ...interface{})
- func Pink(output interface{})
- func Pinkf(output ...interface{})
- func Red(output interface{})
- func Redf(output ...interface{})
- func Trace(out ...interface{})
- func Tracef(out ...interface{})
- func Warn(out ...interface{})
- func Warnf(out ...interface{})
- func Yellow(output interface{})
- func Yellowf(output ...interface{})
- type GoodlogProvider
- func (*GoodlogProvider) AfterInit(instance any) error
- func (self *GoodlogProvider) BeforeInit(c core.Container) error
- func (*GoodlogProvider) InitOnBoot() bool
- func (self *GoodlogProvider) Name() string
- func (sp *GoodlogProvider) Params(c core.Container) []interface{}
- func (self *GoodlogProvider) RegisterProviderInstance(c core.Container) core.NewInstanceFunc
- type GoodlogService
- func (s *GoodlogService) Color(color string, output interface{})
- func (s *GoodlogService) Colorf(color string, out ...interface{})
- func (self *GoodlogService) Debug(out ...interface{})
- func (self *GoodlogService) Debugf(out ...interface{})
- func (self *GoodlogService) Error(out ...interface{})
- func (self *GoodlogService) Errorf(out ...interface{})
- func (self *GoodlogService) Fatal(out ...interface{})
- func (self *GoodlogService) Fatalf(out ...interface{})
- func (self *GoodlogService) Info(out ...interface{})
- func (self *GoodlogService) Infof(out ...interface{})
- func (s *GoodlogService) P(color string, data any)
- func (self *GoodlogService) Trace(out ...interface{})
- func (self *GoodlogService) Tracef(out ...interface{})
- func (self *GoodlogService) Warn(out ...interface{})
- func (self *GoodlogService) Warnf(out ...interface{})
- type Service
Constants ¶
View Source
const Name = "goodlog"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoodlogProvider ¶
type GoodlogProvider struct {
core.ServiceProvider // 显示的写上实现了哪个接口主要是为了代码可读性以及 IDE 友好
// contains filtered or unexported fields
}
func (*GoodlogProvider) AfterInit ¶
func (*GoodlogProvider) AfterInit(instance any) error
func (*GoodlogProvider) BeforeInit ¶
func (self *GoodlogProvider) BeforeInit(c core.Container) error
往服务中心注册自己前的操作
func (*GoodlogProvider) InitOnBoot ¶
func (*GoodlogProvider) InitOnBoot() bool
日志服务不需要延迟初始化,启动程序就需要打印日志了
func (*GoodlogProvider) Name ¶
func (self *GoodlogProvider) Name() string
func (*GoodlogProvider) Params ¶
func (sp *GoodlogProvider) Params(c core.Container) []interface{}
func (*GoodlogProvider) RegisterProviderInstance ¶
func (self *GoodlogProvider) RegisterProviderInstance(c core.Container) core.NewInstanceFunc
type GoodlogService ¶
type GoodlogService struct {
Service
// contains filtered or unexported fields
}
func (*GoodlogService) Color ¶
func (s *GoodlogService) Color(color string, output interface{})
color
func (*GoodlogService) Colorf ¶
func (s *GoodlogService) Colorf(color string, out ...interface{})
func (*GoodlogService) Debugf ¶
func (self *GoodlogService) Debugf(out ...interface{})
func (*GoodlogService) Errorf ¶
func (self *GoodlogService) Errorf(out ...interface{})
func (*GoodlogService) Fatalf ¶
func (self *GoodlogService) Fatalf(out ...interface{})
func (*GoodlogService) Infof ¶
func (self *GoodlogService) Infof(out ...interface{})
func (*GoodlogService) P ¶
func (s *GoodlogService) P(color string, data any)
func (*GoodlogService) Tracef ¶
func (self *GoodlogService) Tracef(out ...interface{})
func (*GoodlogService) Warnf ¶
func (self *GoodlogService) Warnf(out ...interface{})
type Service ¶
type Service interface {
Trace(output ...interface{})
Tracef(output ...interface{})
Debug(output ...interface{})
Debugf(output ...interface{})
Info(output ...interface{})
Infof(output ...interface{})
Warn(output ...interface{})
Warnf(output ...interface{})
Error(output ...interface{})
Errorf(output ...interface{})
Fatal(output ...interface{})
Fatalf(output ...interface{})
Color(color string, output interface{})
Colorf(color string, format string, output ...interface{})
P(output interface{})
}
Click to show internal directories.
Click to hide internal directories.