Documentation ¶
Index ¶
- Constants
- func BluePrintf(str string, v ...any)
- func BluePrintln(output ...any)
- func BlueSprintf(str any, rest ...string) string
- func BrownPrintf(str string, v ...any)
- func BrownPrintln(output ...any)
- func BrownSprintf(str any, rest ...string) string
- func CyanPrintf(str string, v ...any)
- func CyanPrintln(output ...any)
- func CyanSprintf(str any, rest ...string) string
- func GreenPrintf(str string, v ...any)
- func GreenPrintln(output ...any)
- func GreenSprintf(str any, rest ...string) string
- func OrangePrintf(str string, v ...any)
- func OrangePrintln(output ...any)
- func OrangeSprintf(str any, rest ...string) string
- func P(data any, outputColor ...string)
- func PinkPrintf(str string, v ...any)
- func PinkPrintln(output ...any)
- func PinkSprintf(str any, rest ...string) string
- func RedPrintf(str string, v ...any)
- func RedPrintln(output ...any)
- func RedSprintf(str any, rest ...string) string
- func YellowPrintf(str string, v ...any)
- func YellowPrintln(output ...any)
- func YellowSprintf(str any, rest ...string) string
- type ClogProvider
- func (*ClogProvider) AfterInit(instance any) error
- func (self *ClogProvider) BeforeInit(c core.Container) error
- func (*ClogProvider) InitOnBind() bool
- func (self *ClogProvider) Name() string
- func (sp *ClogProvider) Params(c core.Container) []interface{}
- func (self *ClogProvider) RegisterProviderInstance(c core.Container) core.NewInstanceFunc
- type ClogService
- func (self *ClogService) Debug(out ...interface{})
- func (self *ClogService) Debugf(out ...interface{})
- func (self *ClogService) Error(out ...interface{})
- func (self *ClogService) Errorf(out ...interface{})
- func (self *ClogService) Fatal(out ...interface{})
- func (self *ClogService) Fatalf(out ...interface{})
- func (self *ClogService) Info(out ...interface{})
- func (self *ClogService) Infof(out ...interface{})
- func (self *ClogService) Trace(out ...interface{})
- func (self *ClogService) Tracef(out ...interface{})
- func (self *ClogService) Warn(out ...interface{})
- func (self *ClogService) Warnf(out ...interface{})
- type Service
Constants ¶
View Source
const ( ColorBlack = black ColorRed = red ColorGreen = green ColorYellow = yellow ColorBlue = blue ColorPink = pink ColorCyan = cyan ColorGray = gray ColorOrange = orange )
View Source
const Name = "clog"
Variables ¶
This section is empty.
Functions ¶
func BluePrintf ¶
func BlueSprintf ¶
func BrownPrintf ¶
func BrownSprintf ¶
func CyanPrintf ¶
func CyanSprintf ¶
func GreenPrintf ¶
func GreenSprintf ¶
func OrangePrintf ¶
func OrangeSprintf ¶
func PinkPrintf ¶
func PinkSprintf ¶
func RedSprintf ¶
func YellowPrintf ¶
func YellowSprintf ¶
Types ¶
type ClogProvider ¶
type ClogProvider struct { core.ServiceProvider // 显示的写上实现了哪个接口主要是为了代码可读性以及 IDE 友好 // contains filtered or unexported fields }
func (*ClogProvider) AfterInit ¶
func (*ClogProvider) AfterInit(instance any) error
func (*ClogProvider) BeforeInit ¶
func (self *ClogProvider) BeforeInit(c core.Container) error
往服务中心注册自己前的操作
func (*ClogProvider) Name ¶
func (self *ClogProvider) Name() string
func (*ClogProvider) Params ¶
func (sp *ClogProvider) Params(c core.Container) []interface{}
func (*ClogProvider) RegisterProviderInstance ¶
func (self *ClogProvider) RegisterProviderInstance(c core.Container) core.NewInstanceFunc
type ClogService ¶
type ClogService struct { Service // contains filtered or unexported fields }
func (*ClogService) Debugf ¶
func (self *ClogService) Debugf(out ...interface{})
func (*ClogService) Errorf ¶
func (self *ClogService) Errorf(out ...interface{})
func (*ClogService) Fatalf ¶
func (self *ClogService) Fatalf(out ...interface{})
func (*ClogService) Infof ¶
func (self *ClogService) Infof(out ...interface{})
func (*ClogService) Tracef ¶
func (self *ClogService) Tracef(out ...interface{})
func (*ClogService) Warnf ¶
func (self *ClogService) 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{}) }
Click to show internal directories.
Click to hide internal directories.