Documentation
¶
Index ¶
- Variables
- func Debug(ctx context.Context, keyvals ...interface{}) error
- func Error(ctx context.Context, keyvals ...interface{}) error
- func GetLog(ctx context.Context) log.Logger
- func GetSafeLog(ctx context.Context) log.Logger
- func Info(ctx context.Context, keyvals ...interface{}) error
- func SetLog(ctx context.Context, logger log.Logger) context.Context
- func Warn(ctx context.Context, keyvals ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoLogger = errors.New("no logger bind with ctx")
)
Functions ¶
func GetSafeLog ¶
GetSafeLog like GetLog but return log.NopLogger if no logger bind with ctx
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.