Documentation ¶
Index ¶
- func Exit()
- func GetLevel() (string, string)
- func LogInit()
- func SetDefaultLevel()
- func SetLevel(levelConsole string, levelFile string)
- func ZapLog(logger *zap.Logger, level string, msg string)
- type AppLogger
- func (l *AppLogger) DPanic(args ...interface{})
- func (l *AppLogger) DPanicf(template string, args ...interface{})
- func (l *AppLogger) Debug(args ...interface{})
- func (l *AppLogger) Debugf(template string, args ...interface{})
- func (l *AppLogger) Error(args ...interface{})
- func (l *AppLogger) Errorf(template string, args ...interface{})
- func (l *AppLogger) Fatal(args ...interface{})
- func (l *AppLogger) Fatalf(template string, args ...interface{})
- func (l *AppLogger) GetName() string
- func (l *AppLogger) GetZapLogger() *zap.Logger
- func (l *AppLogger) Info(args ...interface{})
- func (l *AppLogger) Infof(template string, args ...interface{})
- func (l *AppLogger) Panic(args ...interface{})
- func (l *AppLogger) Panicf(template string, args ...interface{})
- func (l *AppLogger) Sync()
- func (l *AppLogger) Warn(args ...interface{})
- func (l *AppLogger) Warnf(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultLevel ¶
func SetDefaultLevel()
Types ¶
type AppLogger ¶
type AppLogger struct {
// contains filtered or unexported fields
}
func MustGetLogger ¶
func (*AppLogger) GetZapLogger ¶
Click to show internal directories.
Click to hide internal directories.