Documentation ¶
Index ¶
- Constants
- func Debug(ctx context.Context, msg string, fields ...zapcore.Field)
- func Error(ctx context.Context, msg string, err error, fields ...zapcore.Field)
- func Fatal(ctx context.Context, msg string, fields ...zapcore.Field)
- func GetLevel() int8
- func Info(ctx context.Context, msg string, fields ...zapcore.Field)
- func Init(op Options)
- func Panic(ctx context.Context, msg string, fields ...zapcore.Field)
- func SetLevel(l int8)
- func Warn(ctx context.Context, msg string, fields ...zapcore.Field)
- type Logger
- type Options
Constants ¶
View Source
const ( Ldebug = 0 Linfo = 1 Lwarn = 2 Lerror = 3 Lpanic = 4 Lfatal = 6 Lnone = 7 )
View Source
const ( LOG_MODE_DEBUG = "DEBUG" LOG_MODE_RELEASE = "RELEASE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debug(ctx context.Context, msg string, fields ...zapcore.Field) Info(ctx context.Context, msg string, fields ...zapcore.Field) Warn(ctx context.Context, msg string, fields ...zapcore.Field) Error(ctx context.Context, msg string, err error, fields ...zapcore.Field) Panic(ctx context.Context, msg string, fields ...zapcore.Field) Fatal(ctx context.Context, msg string, fields ...zapcore.Field) SetLevel(int8) GetLevel() int8 }
Click to show internal directories.
Click to hide internal directories.