Documentation ¶
Index ¶
- Constants
- func Debug(msg ...interface{})
- func Debugf(format string, msg ...interface{})
- func Debugln(msg ...interface{})
- func Error(msg ...interface{})
- func Errorf(format string, msg ...interface{})
- func Errorln(msg ...interface{})
- func GetFields(entry *logrus.Entry, level logrus.Level) (logrus.Fields, bool, error)
- func GetGID() uint64
- func GetNameLog(name string) (l *logrus.Logger)
- func HasLoggerInit() bool
- func Info(msg ...interface{})
- func Infof(format string, msg ...interface{})
- func Infoln(msg ...interface{})
- func InitLoggers() error
- func NewFileHook(config config.Configuration) (hook logrus.Hook, err error)
- func NewMyLogFormatter(config config.Configuration) (formatter logrus.Formatter, err error)
- func Warn(msg ...interface{})
- func Warnf(format string, msg ...interface{})
- func Warnln(msg ...interface{})
- type FileHook
- type MyFormatterConfig
Constants ¶
View Source
const ( LevelError = iota LevelWarn LevelInfo LevelDebug )
RFC5424 log message levels.
View Source
const (
GLOBAL = "global" //全局name空间
)
View Source
const TIMEFORMAT = "2006-01-02T15:04:05.999999999"
Variables ¶
This section is empty.
Functions ¶
func GetNameLog ¶
func HasLoggerInit ¶
func HasLoggerInit() bool
func InitLoggers ¶
func InitLoggers() error
func NewFileHook ¶
func NewFileHook(config config.Configuration) (hook logrus.Hook, err error)
func NewMyLogFormatter ¶
func NewMyLogFormatter(config config.Configuration) (formatter logrus.Formatter, err error)
Types ¶
Click to show internal directories.
Click to hide internal directories.