Documentation ¶
Index ¶
- func Close()
- func Debug(format string, a ...interface{}) (err error)
- func Debugx(logID, format string, a ...interface{}) (err error)
- func Fatal(format string, a ...interface{}) (err error)
- func Fatalx(logID, format string, a ...interface{}) (err error)
- func Notice(format string, a ...interface{}) (err error)
- func Noticex(logID, format string, a ...interface{}) (err error)
- func SetGlobalLogger(lg Logger)
- func Trace(format string, a ...interface{}) (err error)
- func Tracex(logID, format string, a ...interface{}) (err error)
- func Warn(format string, a ...interface{}) (err error)
- func Warnx(logID, format string, a ...interface{}) (err error)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetGlobalLogger ¶
func SetGlobalLogger(lg Logger)
SetGlobalLogger set global logger, if global logger already exists, close it and set to new.
Types ¶
type Logger ¶
type Logger interface { SetLevel(name, level string) error Debug(format string, a ...interface{}) (err error) Trace(format string, a ...interface{}) (err error) Notice(format string, a ...interface{}) (err error) Warn(format string, a ...interface{}) (err error) Fatal(format string, a ...interface{}) (err error) Debugx(logID, format string, a ...interface{}) (err error) Tracex(logID, format string, a ...interface{}) (err error) Noticex(logID, format string, a ...interface{}) (err error) Warnx(logID, format string, a ...interface{}) (err error) Fatalx(logID, format string, a ...interface{}) (err error) Close() }
Logger is the log interface
Click to show internal directories.
Click to hide internal directories.