Documentation ¶
Index ¶
- Constants
- func Debug(ctx context.Context, args ...interface{})
- func DebugKV(ctx context.Context, message string, kvs ...interface{})
- func Debugf(ctx context.Context, format string, args ...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 FatalKV(ctx context.Context, message string, kvs ...interface{})
- func Fatalf(ctx context.Context, format string, args ...interface{})
- func FromContext(ctx context.Context) *zap.SugaredLogger
- func Info(ctx context.Context, args ...interface{})
- func InfoKV(ctx context.Context, message string, kvs ...interface{})
- func Infof(ctx context.Context, format string, args ...interface{})
- func InitWithName(lvl levelName) bool
- func InitWithString(lvl string) bool
- func Level() zapcore.Level
- func Logger() *zap.SugaredLogger
- 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 PanicKV(ctx context.Context, message string, kvs ...interface{})
- func Panicf(ctx context.Context, format string, args ...interface{})
- func SetLevel(l zapcore.Level)
- func SetLogger(l *zap.SugaredLogger)
- func ToContext(ctx context.Context, l *zap.SugaredLogger) context.Context
- func Warn(ctx context.Context, args ...interface{})
- func WarnKV(ctx context.Context, message string, kvs ...interface{})
- func Warnf(ctx context.Context, format string, args ...interface{})
Constants ¶
View Source
const ( NameDebug levelName = "DEBUG" NameInfo levelName = "INFO" NameWarn levelName = "WARN" NameError levelName = "ERROR" )
log level names
Variables ¶
This section is empty.
Functions ¶
func NewWithSink ¶
func NewWithSink(level zapcore.LevelEnabler, sink io.Writer, options ...zap.Option) *zap.SugaredLogger
NewWithSink ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.