|
|
@ -132,127 +132,127 @@ func (logger *starlog) println(str ...interface{}) string {
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Debug(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Debug(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvDebug, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvDebug, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Debugf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
func (logger *starlog) Debugf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvDebug, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvDebug, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Debugln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Debugln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvDebug, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvDebug, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Info(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Info(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvInfo, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvInfo, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Infof(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
func (logger *starlog) Infof(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvInfo, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvInfo, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Infoln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Infoln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvInfo, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvInfo, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Notice(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Notice(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvNotice, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvNotice, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Noticef(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
func (logger *starlog) Noticef(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvNotice, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvNotice, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Noticeln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Noticeln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvNotice, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvNotice, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Warning(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Warning(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvWarning, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvWarning, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Warningf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
func (logger *starlog) Warningf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvWarning, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvWarning, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Warningln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Warningln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvWarning, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvWarning, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Error(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Error(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvError, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvError, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Errorf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
func (logger *starlog) Errorf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvError, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvError, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Errorln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Errorln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvError, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvError, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Critical(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Critical(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvCritical, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvCritical, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Criticalf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
func (logger *starlog) Criticalf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvCritical, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvCritical, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Criticalln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Criticalln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvCritical, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvCritical, strs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Fatal(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Fatal(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvFatal, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvFatal, strs)
|
|
|
|
os.Exit(9)
|
|
|
|
os.Exit(9)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Fatalf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
func (logger *starlog) Fatalf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvFatal, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvFatal, strs)
|
|
|
|
os.Exit(9)
|
|
|
|
os.Exit(9)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Fatalln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Fatalln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvFatal, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvFatal, strs)
|
|
|
|
os.Exit(9)
|
|
|
|
os.Exit(9)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Panic(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Panic(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
strs := fmt.Sprint(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvPanic, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvPanic, strs)
|
|
|
|
panic(str)
|
|
|
|
panic(str)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Panicf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
func (logger *starlog) Panicf(thread string, isStd bool, handler func([]Attr, string), format string, str ...interface{}) {
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
strs := fmt.Sprintf(format, str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvPanic, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvPanic, strs)
|
|
|
|
panic(fmt.Sprintf(format, str...))
|
|
|
|
panic(fmt.Sprintf(format, str...))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger *starlog) Panicln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
func (logger *starlog) Panicln(thread string, isStd bool, handler func([]Attr, string), str ...interface{}) {
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
strs := fmt.Sprintln(str...)
|
|
|
|
logger.build(thread, isStd, true, handler, LvPanic, strs)
|
|
|
|
logger.build(thread, isStd, logger.showStd, handler, LvPanic, strs)
|
|
|
|
panic(fmt.Sprintln(str...))
|
|
|
|
panic(fmt.Sprintln(str...))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|