Documentation
¶
Index ¶
- Constants
- func Debug(args interface{}, fields ...map[string]interface{})
- func Debugf(format string, args ...interface{})
- func Error(args interface{}, fields ...map[string]interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args interface{}, fields ...map[string]interface{})
- func Fatalf(format string, args ...interface{})
- func GetLevel(lvKey string) (lv int)
- func GetLogPathFile(logConf *conf.LogConfig) string
- func Info(args interface{}, fields ...map[string]interface{})
- func Infof(format string, args ...interface{})
- func InitLog(level, maxAge, rotationTime int, pathFile string)
- func Panic(args interface{}, fields ...map[string]interface{})
- func Panicf(format string, args ...interface{})
- func SetLevel(level int)
- func Trace(args interface{}, fields ...map[string]interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args interface{}, fields ...map[string]interface{})
- func Warnf(format string, args ...interface{})
- type Fields
- type Logger
- func (l *Logger) Debug(args interface{}, fields ...map[string]interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(args interface{}, fields ...map[string]interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(args interface{}, fields ...map[string]interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Info(args interface{}, fields ...map[string]interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Panic(args interface{}, fields ...map[string]interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) SetLevel(level int)
- func (l *Logger) SetRotation(maxAge, rotationTime time.Duration, pathFile string)
- func (l *Logger) SetSkipNum(val int)
- func (l *Logger) Trace(args interface{}, fields ...map[string]interface{})
- func (l *Logger) Tracef(format string, args ...interface{})
- func (l *Logger) Warn(args interface{}, fields ...map[string]interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
Constants ¶
View Source
const ( PANIC = iota FATAL ERROR WARN INFO DEBUG TRACE )
Variables ¶
This section is empty.
Functions ¶
func GetLogPathFile ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) SetRotation ¶
func (*Logger) SetSkipNum ¶
Click to show internal directories.
Click to hide internal directories.