Documentation ¶
Index ¶
- func Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry
- func CreateLogger(path, level, pattern, name, format, url string, compress bool) (*zap.Logger, error)
- func CreateLogrus(path, level, pattern string, compress bool) error
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func GlobalLogger() *zap.Logger
- func Info(msg string, fields ...zap.Field)
- func Logger(w io.Writer, level, name, format, url string) (*zap.Logger, error)
- func Panic(msg string, fields ...zap.Field)
- func SetGlobalLogger(log *zap.Logger)
- func Sugar() *zap.SugaredLogger
- func Warn(msg string, fields ...zap.Field)
- func Writer(path, pattern string, compress bool) (io.Writer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry
Check returns a CheckedEntry if logging a message at the specified level is enabled
func CreateLogger ¶
func CreateLogrus ¶
func GlobalLogger ¶
func SetGlobalLogger ¶
func Sugar ¶
func Sugar() *zap.SugaredLogger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.