Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceProvider ¶
func ReplaceProvider(logger Logger) func()
Types ¶
type ConfigLog ¶
type ConfigLog struct { LevelKey string TimeKey string MessageKey string CallerKey string StacktracerKey string EnableCaller bool EnableStacktracer bool EnableFileLog bool FileLog string MaxSize int MaxBackups int MaxAge int }
Config log
func CleanConfig ¶
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) WithFields(keyValues Fields) Logger }
Click to show internal directories.
Click to hide internal directories.