Documentation ¶
Index ¶
- func AddHandler(name string, w Handler)
- func Critical(v ...interface{})
- func Criticalf(format string, v ...interface{})
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func DefaultLogger() *glog.Logger
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func GetLevel() int
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func IsDebug() bool
- func Notice(v ...interface{})
- func Noticef(format string, v ...interface{})
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func RemoveHandler(name string)
- func SetConfigWithMap(setting g.Map) error
- func SetDebug(debug bool)
- func SetLevel(level int)
- func SetLevelStr(levelStr string) error
- func SetStdoutPrint(enabled bool)
- func Warning(v ...interface{})
- func Warningf(format string, v ...interface{})
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Critical ¶
func Critical(v ...interface{})
Critical prints the logging content with [CRIT] header and newline. It also prints caller stack info if stack feature is enabled.
func Criticalf ¶
func Criticalf(format string, v ...interface{})
Criticalf prints the logging content with [CRIT] header, custom format and newline. It also prints caller stack info if stack feature is enabled.
func Debug ¶
func Debug(v ...interface{})
Debug prints the logging content with [DEBU] header and newline.
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf prints the logging content with [DEBU] header, custom format and newline.
func DefaultLogger ¶
func Error ¶
func Error(v ...interface{})
Error prints the logging content with [ERRO] header and newline. It also prints caller stack info if stack feature is enabled.
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf prints the logging content with [ERRO] header, custom format and newline. It also prints caller stack info if stack feature is enabled.
func Fatal ¶
func Fatal(v ...interface{})
Fatal prints the logging content with [FATA] header and newline, then exit the current process.
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatalf prints the logging content with [FATA] header, custom format and newline, then exit the current process.
func Info ¶
func Info(v ...interface{})
Info prints the logging content with [INFO] header and newline.
func Infof ¶
func Infof(format string, v ...interface{})
Infof prints the logging content with [INFO] header, custom format and newline.
func Notice ¶
func Notice(v ...interface{})
Notice prints the logging content with [NOTI] header and newline. It also prints caller stack info if stack feature is enabled.
func Noticef ¶
func Noticef(format string, v ...interface{})
Noticef prints the logging content with [NOTI] header, custom format and newline. It also prints caller stack info if stack feature is enabled.
func Panic ¶
func Panic(v ...interface{})
Panic prints the logging content with [PANI] header and newline, then panics.
func Panicf ¶
func Panicf(format string, v ...interface{})
Panicf prints the logging content with [PANI] header, custom format and newline, then panics.
func Print ¶
func Print(v ...interface{})
Print prints <v> with newline using fmt.Sprintln. The parameter <v> can be multiple variables.
func Printf ¶
func Printf(format string, v ...interface{})
Printf prints <v> with format <format> using fmt.Sprintf. The parameter <v> can be multiple variables.
func SetConfigWithMap ¶
func SetLevelStr ¶
func SetStdoutPrint ¶
func SetStdoutPrint(enabled bool)