Documentation ¶
Index ¶
- func InitZap(logConf LoggerConfig) *zap.Logger
- type LogOption
- type Logger
- func (z *Logger) Debug(v ...any)
- func (z *Logger) Debugf(format string, v ...any)
- func (z *Logger) Error(v ...any)
- func (z *Logger) Errorf(format string, v ...any)
- func (z *Logger) Info(v ...any)
- func (z *Logger) Infof(format string, v ...any)
- func (z *Logger) Warn(v ...any)
- func (z *Logger) Warnf(format string, v ...any)
- type LoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogOption ¶
type LogOption func(*Logger)
func WithCallerFullPath ¶
func WithCallerFullPath() LogOption
WithCallerFullPath log caller full path
func WithRotationTime ¶
WithRotationTime set rotation time
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger zap logger config
type LoggerConfig ¶
type LoggerConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.