Documentation
¶
Index ¶
- type Logger
- type OptionFunc
- type ZapLogger
- func (z *ZapLogger) Debug(msg string)
- func (z *ZapLogger) DebugDepth(msg string, dep int)
- func (z *ZapLogger) Debugf(format string, a ...interface{})
- func (z *ZapLogger) Error(msg string)
- func (z *ZapLogger) ErrorDepth(msg string, dep int)
- func (z *ZapLogger) Errorf(format string, a ...interface{})
- func (z *ZapLogger) Info(msg string)
- func (z *ZapLogger) InfoDepth(msg string, dep int)
- func (z *ZapLogger) Infof(format string, a ...interface{})
- func (z *ZapLogger) Warn(msg string)
- func (z *ZapLogger) WarnDepth(msg string, dep int)
- func (z *ZapLogger) Warnf(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debug(msg string) Info(msg string) Warn(msg string) Error(msg string) Debugf(format string, a ...interface{}) Infof(format string, a ...interface{}) Warnf(format string, a ...interface{}) Errorf(format string, a ...interface{}) DebugDepth(msg string, dep int) InfoDepth(msg string, dep int) WarnDepth(msg string, dep int) ErrorDepth(msg string, dep int) }
func NewLoggerInterface ¶
type OptionFunc ¶
type OptionFunc func(op *option)
func WithOptionLogFileConfig ¶
func WithOptionLogFileConfig(fName string, maxSize, maxBackups int) OptionFunc
type ZapLogger ¶
type ZapLogger struct {
// contains filtered or unexported fields
}
func NewZopLogger ¶
func NewZopLogger(ops ...OptionFunc) *ZapLogger
func (*ZapLogger) DebugDepth ¶
func (*ZapLogger) ErrorDepth ¶
Click to show internal directories.
Click to hide internal directories.