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 ¶
func RedirectStdLog ¶
func SetDefault ¶
func SetLoggerDir ¶
func SetLoggerDir(dir string)
Types ¶
type GormLogSender ¶
type Option ¶
type Option func(c *config)
func WithCompress ¶
func WithLocalTime ¶
func WithMaxAge ¶
func WithMaxBackups ¶
func WithMaxSize ¶
Click to show internal directories.
Click to hide internal directories.