Documentation ¶
Index ¶
- 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 (logger *AppLogger) GetLevel() (string, string)
- func (logger *AppLogger) GetNameLogger(names ...string) *AppLogger
- 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 (logger *AppLogger) SetLevel(levelConsole string, levelFile string)
- func (l *AppLogger) Sync()
- func (l *AppLogger) Warn(args ...interface{})
- func (l *AppLogger) Warnf(template string, args ...interface{})
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLogger ¶
type AppLogger struct {
// contains filtered or unexported fields
}
func (*AppLogger) Debug ¶
func (l *AppLogger) Debug(args ...interface{})
func formatArgs(args []interface{}) string { return strings.TrimSuffix(fmt.Sprintln(args...), "\n") }
func (*AppLogger) GetNameLogger ¶
func (*AppLogger) GetZapLogger ¶
Click to show internal directories.
Click to hide internal directories.