Documentation
¶
Index ¶
- 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 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 GetLogger() *glog.Logger
- 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 SetConfigWithMap(setting g.Map) error
- func SetDebug(debug bool)
- func SetLevel(level int)
- func SetLevelStr(levelStr string) error
- func SetLogger(l *glog.Logger)
- func SetStdoutPrint(enabled bool)
- func Warning(ctx context.Context, v ...interface{})
- func Warningf(ctx context.Context, format string, v ...interface{})
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 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 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 ¶
func SetStdoutPrint(enabled bool)
Types ¶
This section is empty.