Documentation ¶
Index ¶
- Constants
- Variables
- type DefaultZapLog
- func (l *DefaultZapLog) Debug(format string, params ...interface{})
- func (l *DefaultZapLog) Error(format string, params ...interface{})
- func (l *DefaultZapLog) Fatal(format string, params ...interface{})
- func (l *DefaultZapLog) Info(format string, params ...interface{})
- func (l *DefaultZapLog) Panic(format string, params ...interface{})
- func (l *DefaultZapLog) Warn(format string, params ...interface{})
- type ILog
- type InvokeLog
- func (ink *InvokeLog) AddLogger(logger ILog)
- func (ink *InvokeLog) Debug(log string, params ...interface{})
- func (ink *InvokeLog) Error(log string, params ...interface{})
- func (ink *InvokeLog) Fatal(log string, params ...interface{})
- func (ink *InvokeLog) Info(log string, params ...interface{})
- func (ink *InvokeLog) Log(level int8, msg string)
- func (ink *InvokeLog) Panic(log string, params ...interface{})
- func (ink *InvokeLog) Warn(log string, params ...interface{})
- type MyLogger
- func (logger *MyLogger) Debug(format string, params ...interface{})
- func (logger *MyLogger) Error(format string, params ...interface{})
- func (logger *MyLogger) Fatal(format string, params ...interface{})
- func (logger *MyLogger) Info(format string, params ...interface{})
- func (logger *MyLogger) LogPath() string
- func (logger *MyLogger) Panic(format string, params ...interface{})
- func (logger *MyLogger) Path() string
- func (logger *MyLogger) Warn(format string, params ...interface{})
- 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(format string, params ...interface{})
func (*DefaultZapLog) Error ¶
func (l *DefaultZapLog) Error(format string, params ...interface{})
func (*DefaultZapLog) Fatal ¶
func (l *DefaultZapLog) Fatal(format string, params ...interface{})
func (*DefaultZapLog) Info ¶
func (l *DefaultZapLog) Info(format string, params ...interface{})
func (*DefaultZapLog) Panic ¶
func (l *DefaultZapLog) Panic(format string, params ...interface{})
func (*DefaultZapLog) Warn ¶
func (l *DefaultZapLog) Warn(format string, params ...interface{})
type ILog ¶
type ILog interface { Debug(log string, params ...interface{}) Info(log string, params ...interface{}) Warn(log string, params ...interface{}) Error(log string, params ...interface{}) Panic(log string, params ...interface{}) Fatal(log string, params ...interface{}) }
func NewDefaultLogger ¶
func NewDefaultLogger(c *MyLoggerConfig) ILog
Click to show internal directories.
Click to hide internal directories.