Documentation
¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func FmtAlertMsg(msg string) string
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func SetLevel(level string)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type SyncLogger
- type SyncLoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FmtAlertMsg ¶
Types ¶
type SyncLogger ¶
func NewFileLogger ¶
func NewFileLogger(config SyncLoggerConfig) (SyncLogger, error)
type SyncLoggerConfig ¶
type SyncLoggerConfig struct {
Enable bool `schema:"Enable file logging"`
Filename string `json:"filename" yaml:"filename" schema:"File name"`
MaxSize int `json:"-" yaml:"maxsize"`
MaxAge int `json:"-" yaml:"maxage"`
MaxBackups int `json:"-" yaml:"maxbackups"`
LocalTime bool `json:"-" yaml:"localtime"`
Compress bool `json:"compress" yaml:"compress"`
ImmediateFlush bool `json:"immediateFlush" yaml:"immediateFlush"`
}
Click to show internal directories.
Click to hide internal directories.