Documentation ¶
Index ¶
- Constants
- Variables
- type DefaultZapLog
- func (l *DefaultZapLog) Debug(msg string) error
- func (l *DefaultZapLog) Debugf(format string, s ...interface{}) error
- func (l *DefaultZapLog) Error(msg string) error
- func (l *DefaultZapLog) Errorf(format string, s ...interface{}) error
- func (l *DefaultZapLog) Fatal(msg string) error
- func (l *DefaultZapLog) Fatalf(format string, s ...interface{}) error
- func (l *DefaultZapLog) Info(msg string) error
- func (l *DefaultZapLog) Infof(format string, s ...interface{}) error
- func (l *DefaultZapLog) Panic(msg string) error
- func (l *DefaultZapLog) Panicf(format string, s ...interface{}) error
- func (l *DefaultZapLog) Warn(msg string) error
- func (l *DefaultZapLog) Warnf(format string, s ...interface{}) error
- type ILog
- type InvokeLog
- func (ink *InvokeLog) AddLogger(logger ILog)
- func (ink *InvokeLog) Debug(log string, params ...interface{}) error
- func (ink *InvokeLog) Error(log string, params ...interface{}) error
- func (ink *InvokeLog) Fatal(log string, params ...interface{}) error
- func (ink *InvokeLog) Info(log string, params ...interface{}) error
- func (ink *InvokeLog) Log(level int8, msg string)
- func (ink *InvokeLog) Panic(log string, params ...interface{}) error
- func (ink *InvokeLog) Warn(log string, params ...interface{}) error
- type MyLogger
- func (logger *MyLogger) Debug(s string) error
- func (logger *MyLogger) Debugf(format string, s ...interface{}) error
- func (logger *MyLogger) Error(s string) error
- func (logger *MyLogger) Errorf(format string, s ...interface{}) error
- func (logger *MyLogger) Fatal(s string) error
- func (logger *MyLogger) Fatalf(format string, s ...interface{}) error
- func (logger *MyLogger) Info(s string) error
- func (logger *MyLogger) Infof(format string, s ...interface{}) error
- func (logger *MyLogger) LogPath() string
- func (logger *MyLogger) Panic(s string) error
- func (logger *MyLogger) Panicf(format string, s ...interface{}) error
- func (logger *MyLogger) Path() string
- func (logger *MyLogger) Trace(s string) error
- func (logger *MyLogger) Warn(s string) error
- func (logger *MyLogger) Warnf(format string, s ...interface{}) error
- func (logger *MyLogger) Write(p []byte) (int, error)
- type MyLoggerConfig
- type ZapLogConfig
Constants ¶
View Source
const ( DebugLog = 1 << iota TraceLog InfoLog WarnLog ErrorLog PanicLog FatalLog )
View Source
const DefaultLogPath = "./runtime/logs/daily.log"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DefaultZapLog ¶
type DefaultZapLog struct {
// contains filtered or unexported fields
}
default logger
func (*DefaultZapLog) Debug ¶
func (l *DefaultZapLog) Debug(msg string) error
func (*DefaultZapLog) Debugf ¶
func (l *DefaultZapLog) Debugf(format string, s ...interface{}) error
func (*DefaultZapLog) Error ¶
func (l *DefaultZapLog) Error(msg string) error
func (*DefaultZapLog) Errorf ¶
func (l *DefaultZapLog) Errorf(format string, s ...interface{}) error
func (*DefaultZapLog) Fatal ¶
func (l *DefaultZapLog) Fatal(msg string) error
func (*DefaultZapLog) Fatalf ¶
func (l *DefaultZapLog) Fatalf(format string, s ...interface{}) error
func (*DefaultZapLog) Info ¶
func (l *DefaultZapLog) Info(msg string) error
func (*DefaultZapLog) Infof ¶
func (l *DefaultZapLog) Infof(format string, s ...interface{}) error
func (*DefaultZapLog) Panic ¶
func (l *DefaultZapLog) Panic(msg string) error
func (*DefaultZapLog) Panicf ¶
func (l *DefaultZapLog) Panicf(format string, s ...interface{}) error
func (*DefaultZapLog) Warn ¶
func (l *DefaultZapLog) Warn(msg string) error
func (*DefaultZapLog) Warnf ¶
func (l *DefaultZapLog) Warnf(format string, s ...interface{}) error
type ILog ¶
type ILog interface { Debug(log string) error Info(log string) error Warn(log string) error Error(log string) error Panic(log string) error Fatal(log string) error Debugf(log string, params ...interface{}) error Infof(log string, params ...interface{}) error Warnf(log string, params ...interface{}) error Errorf(log string, params ...interface{}) error Panicf(log string, params ...interface{}) error Fatalf(log string, params ...interface{}) error }
type MyLogger ¶
type MyLogger struct {
// contains filtered or unexported fields
}
func NewDefaultLogger ¶
func NewDefaultLogger(c *MyLoggerConfig) *MyLogger
Click to show internal directories.
Click to hide internal directories.