Documentation ¶
Overview ¶
Package log provides log functionality. It wraps zap.Logger with trace.
Index ¶
- Constants
- type Logger
- func (l *Logger) Debugf(ctx context.Context, template string, args ...interface{})
- func (l *Logger) Errorf(ctx context.Context, template string, args ...interface{})
- func (l *Logger) Infof(ctx context.Context, template string, args ...interface{})
- func (l *Logger) Warnf(ctx context.Context, template string, args ...interface{})
Constants ¶
View Source
const ( // EnvDevelopment is set to development. EnvDevelopment = "development" // EnvProduction is set to production. EnvProduction = "production" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
*zap.SugaredLogger
}
Logger provides logging functionality.
Click to show internal directories.
Click to hide internal directories.