Documentation ¶
Index ¶
- func ConvertLevel(lvl uint8) zapcore.Level
- func ErrorWithStack(ctx context.Context, err error, msg string, kvs ...interface{})
- func FromContext(ctx context.Context) *zap.SugaredLogger
- func NewLogger() *zap.SugaredLogger
- func SetDefault()
- func Setup(isDevel bool, lvl uint8, opts ...zap.Option)
- func WithLogger(parent context.Context, logger *zap.SugaredLogger) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLevel ¶
func ErrorWithStack ¶
ErrorWithStack shows error log along with its stacktrace.
func FromContext ¶
func FromContext(ctx context.Context) *zap.SugaredLogger
func NewLogger ¶
func NewLogger() *zap.SugaredLogger
func SetDefault ¶
func SetDefault()
func WithLogger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.