Documentation ¶
Index ¶
- func AttachLogger(ctx context.Context, logger *zap.SugaredLogger) context.Context
- func CloneWithLevel(ctx context.Context, newLevel zapcore.Level) *zap.SugaredLogger
- func Debug(ctx context.Context, args ...interface{})
- func DebugF(ctx context.Context, format string, args ...interface{})
- func DebugKV(ctx context.Context, message string, kvs ...interface{})
- func Error(ctx context.Context, args ...interface{})
- func ErrorKV(ctx context.Context, message string, kvs ...interface{})
- func Errorf(ctx context.Context, format string, args ...interface{})
- func Fatal(ctx context.Context, args ...interface{})
- func FatalF(ctx context.Context, format string, args ...interface{})
- func FatalKV(ctx context.Context, message string, kvs ...interface{})
- func Info(ctx context.Context, args ...interface{})
- func InfoF(ctx context.Context, format string, args ...interface{})
- func InfoKV(ctx context.Context, message string, kvs ...interface{})
- func New(level zapcore.LevelEnabler, options ...zap.Option) *zap.SugaredLogger
- func NewWithSink(level zapcore.LevelEnabler, sink io.Writer, options ...zap.Option) *zap.SugaredLogger
- func Panic(ctx context.Context, args ...interface{})
- func PanicF(ctx context.Context, format string, args ...interface{})
- func PanicKV(ctx context.Context, message string, kvs ...interface{})
- func SetLevel(l zapcore.Level)
- func SetLogger(l *zap.SugaredLogger)
- func StrToZapLevel(str string) (zapcore.Level, bool)
- func Warn(ctx context.Context, args ...interface{})
- func WarnF(ctx context.Context, format string, args ...interface{})
- func WarnKV(ctx context.Context, message string, kvs ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachLogger ¶
AttachLogger - context attach logger
func CloneWithLevel ¶
CloneWithLevel - clone logger with level
func New ¶
func New(level zapcore.LevelEnabler, options ...zap.Option) *zap.SugaredLogger
func NewWithSink ¶
func NewWithSink(level zapcore.LevelEnabler, sink io.Writer, options ...zap.Option) *zap.SugaredLogger
func SetLogger ¶
func SetLogger(l *zap.SugaredLogger)
func StrToZapLevel ¶
StrToZapLevel - convert string to zap.level
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.