Documentation
¶
Index ¶
- func Debug(args ...any)
- func Debugf(template string, args ...any)
- func Error(args ...any)
- func Errorf(template string, args ...any)
- func Fatal(args ...any)
- func Fatalf(template string, args ...any)
- func Info(args ...any)
- func Infof(template string, args ...any)
- func InitLogger()
- func InitPersistenceLogger(filename string)
- func NewRotateLogger(filename string) io.Writer
- func NewSugarLogger(option *InitOption) *zap.SugaredLogger
- func Obj() *zap.SugaredLogger
- func Panic(args ...any)
- func Panicf(template string, args ...any)
- func Sync()
- func TimeFormatFunc(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func Warn(args ...any)
- func Warnf(template string, args ...any)
- type InitOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger()
InitLogger InitDefaultLogger default logger with name, should be init call it
func InitPersistenceLogger ¶
func InitPersistenceLogger(filename string)
func NewRotateLogger ¶
func NewSugarLogger ¶
func NewSugarLogger(option *InitOption) *zap.SugaredLogger
func Obj ¶
func Obj() *zap.SugaredLogger
func TimeFormatFunc ¶
func TimeFormatFunc(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Types ¶
type InitOption ¶
type InitOption struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.