Documentation
¶
Index ¶
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Init(name string, opts ...OptionFunc) (*zap.SugaredLogger, error)
- func Logger() *zap.SugaredLogger
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Writer() io.Writer
- type OptionFunc
- type Options
- type Wrap
- func (p *Wrap) Error(args ...interface{})
- func (p *Wrap) Errorf(template string, args ...interface{})
- func (p *Wrap) Info(args ...interface{})
- func (p *Wrap) Infof(template string, args ...interface{})
- func (p *Wrap) Panic(args ...interface{})
- func (p *Wrap) Panicf(template string, args ...interface{})
- func (p *Wrap) Warn(args ...interface{})
- func (p *Wrap) Warnf(template string, args ...interface{})
- func (p *Wrap) With(args ...interface{}) *Wrap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(name string, opts ...OptionFunc) (*zap.SugaredLogger, error)
func Logger ¶
func Logger() *zap.SugaredLogger
Types ¶
type Wrap ¶
type Wrap struct {
*zap.SugaredLogger
}
Click to show internal directories.
Click to hide internal directories.