Documentation ¶
Overview ¶
Package logger provides support for logging to stdout and stderr.
Index ¶
- func CheckLevel(level string) error
- func Debugf(ctx context.Context, format string, v ...interface{})
- func Errorf(ctx context.Context, format string, v ...interface{})
- func Fatalf(ctx context.Context, format string, v ...interface{})
- func GetLevel() string
- func Infof(ctx context.Context, format string, v ...interface{})
- func SetLevel(level string)
- func SetLogger(l Logger)
- func Warnf(ctx context.Context, format string, v ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLevel ¶
CheckLevel checks whether the log level is valid.
Types ¶
type Logger ¶
type Logger interface { Debugf(ctx context.Context, format string, v ...interface{}) Infof(ctx context.Context, format string, v ...interface{}) Warnf(ctx context.Context, format string, v ...interface{}) Errorf(ctx context.Context, format string, v ...interface{}) Fatalf(ctx context.Context, format string, v ...interface{}) Panicf(ctx context.Context, format string, v ...interface{}) }
Logger is the interface of SDK logger.
Click to show internal directories.
Click to hide internal directories.