Documentation
¶
Index ¶
- func AddHandler(name string, w Handler)
- func Critical(ctx context.Context, v ...interface{})
- func Criticalf(ctx context.Context, format string, v ...interface{})
- func Debug(ctx context.Context, v ...interface{})
- func Debugf(ctx context.Context, format string, v ...interface{})
- func DefaultLogger() *glog.Logger
- func Error(ctx context.Context, v ...interface{})
- func Errorf(ctx context.Context, format string, v ...interface{})
- func Fatal(ctx context.Context, v ...interface{})
- func Fatalf(ctx context.Context, format string, v ...interface{})
- func GetLevel() int
- func Info(ctx context.Context, v ...interface{})
- func Infof(ctx context.Context, format string, v ...interface{})
- func IsDebug() bool
- func Notice(ctx context.Context, v ...interface{})
- func Noticef(ctx context.Context, format string, v ...interface{})
- func Panic(ctx context.Context, v ...interface{})
- func Panicf(ctx context.Context, format string, v ...interface{})
- func Print(ctx context.Context, v ...interface{})
- func Printf(ctx context.Context, format string, v ...interface{})
- func Println(ctx context.Context, 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(ctx context.Context, v ...interface{})
- func Warningf(ctx context.Context, format string, v ...interface{})
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Critical ¶
Critical prints the logging content with [CRIT] header and newline. It also prints caller stack info if stack feature is enabled.
func Criticalf ¶
Criticalf prints the logging content with [CRIT] header, custom format and newline. It also prints caller stack info if stack feature is enabled.
func DefaultLogger ¶ added in v0.0.8
func Error ¶
Error prints the logging content with [ERRO] header and newline. It also prints caller stack info if stack feature is enabled.
func Errorf ¶
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 ¶
Fatal prints the logging content with [FATA] header and newline, then exit the current process.
func Fatalf ¶
Fatalf prints the logging content with [FATA] header, custom format and newline, then exit the current process.
func Notice ¶
Notice prints the logging content with [NOTI] header and newline. It also prints caller stack info if stack feature is enabled.
func Noticef ¶
Noticef prints the logging content with [NOTI] header, custom format and newline. It also prints caller stack info if stack feature is enabled.
func Panicf ¶
Panicf prints the logging content with [PANI] header, custom format and newline, then panics.
func Print ¶
Print prints <v> with newline using fmt.Sprintln. The parameter <v> can be multiple variables.
func Printf ¶
Printf prints <v> with format <format> using fmt.Sprintf. The parameter <v> can be multiple variables.
func SetConfigWithMap ¶
func SetLevelStr ¶
func SetStdoutPrint ¶ added in v0.5.0
func SetStdoutPrint(enabled bool)