Documentation ¶
Index ¶
- Constants
- func D(ctx context.Context, message string, fields ...zapcore.Field)
- func E(ctx context.Context, err error, message string, fields ...zapcore.Field)
- func Field(key string, value interface{}) zapcore.Field
- func Get() *zap.Logger
- func I(ctx context.Context, message string, fields ...zapcore.Field)
- func Init(mode int, env environment.Environment)
- func Sync()
- func W(ctx context.Context, message string, fields ...zapcore.Field)
- type ContextKey
- type LoggingFunc
Constants ¶
View Source
const ( DEBUG = 0 INFO = 1 WARNING = 2 ERROR = 3 FATAL = 4 )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(mode int, env environment.Environment)
Types ¶
type ContextKey ¶
type ContextKey string
type LoggingFunc ¶
Click to show internal directories.
Click to hide internal directories.