Documentation ¶
Index ¶
- func DPanic(msg string, fields ...zap.Field)
- func Debug(msg string, fields ...zap.Field)
- func Default() *zap.Logger
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func GetLoggerDir() string
- func Info(msg string, fields ...zap.Field)
- func NewGormLogger(name string, slowThreshold time.Duration, level gormless.LogLevel, ...) gormless.Interface
- func NewLogger(file string, opts ...Option) *zap.Logger
- func Panic(msg string, fields ...zap.Field)
- func RedirectStdLog(log *zap.Logger)
- func SetDefault(log *zap.Logger)
- func SetLoggerDir(dir string)
- func Use(filename string, opts ...Option) *zap.Logger
- func Warn(msg string, fields ...zap.Field)
- func With(fields ...zap.Field) *zap.Logger
- func WithOptions(opts ...zap.Option) *zap.Logger
- type GormLogSender
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoggerDir ¶
func GetLoggerDir() string
func NewGormLogger ¶ added in v1.2.0
func RedirectStdLog ¶ added in v1.3.24
func SetDefault ¶ added in v1.3.14
func SetLoggerDir ¶
func SetLoggerDir(dir string)
Types ¶
type GormLogSender ¶ added in v1.2.0
type Option ¶ added in v1.3.14
type Option func(c *config)
func WithCompress ¶ added in v1.3.16
func WithLocalTime ¶ added in v1.3.16
func WithMaxAge ¶ added in v1.3.16
func WithMaxBackups ¶ added in v1.3.16
func WithMaxSize ¶ added in v1.3.16
Click to show internal directories.
Click to hide internal directories.