Documentation
¶
Index ¶
- func DPanic(args ...interface{})
- func DPanicf(format string, args ...interface{})
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(c *gin.Context, args ...interface{})
- func Errorf(c *gin.Context, format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Init(cfg *Config)
- func LogFile() string
- func LogLevel() string
- func LogName() string
- func LogPath() string
- func Logger() *zap.Logger
- func NewContext(ctx *gin.Context, fields ...zapcore.Field)
- func NewFileLogger(path string) *zap.Logger
- func NopSugaredLogger() *zap.SugaredLogger
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func SendLogToFile() bool
- func SugaredLogger() *zap.SugaredLogger
- func Warn(c *gin.Context, args ...interface{})
- func Warnf(c *gin.Context, format string, args ...interface{})
- func With(fields ...zap.Field) *zap.Logger
- func WithContext(ctx *gin.Context) *zap.Logger
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileLogger ¶
func NopSugaredLogger ¶
func NopSugaredLogger() *zap.SugaredLogger
func SendLogToFile ¶
func SendLogToFile() bool
func SugaredLogger ¶
func SugaredLogger() *zap.SugaredLogger
Types ¶
Click to show internal directories.
Click to hide internal directories.