Documentation
¶
Index ¶
- func CDebug(ctx context.Context, msg ...interface{})
- func CDebugf(ctx context.Context, msgfmt string, args ...interface{})
- func CError(ctx context.Context, msg ...interface{})
- func CErrorf(ctx context.Context, msgfmt string, args ...interface{})
- func CInfo(ctx context.Context, msg ...interface{})
- func CInfof(ctx context.Context, msgfmt string, args ...interface{})
- func CWarn(ctx context.Context, msg ...interface{})
- func CWarnf(ctx context.Context, msgfmt string, args ...interface{})
- func Debug(msg ...interface{})
- func Debugf(msgfmt string, args ...interface{})
- func Error(msg ...interface{})
- func Errorf(msgfmt string, args ...interface{})
- func Info(msg ...interface{})
- func Infof(msgfmt string, args ...interface{})
- func Set(ctx context.Context, log LogContext) context.Context
- func SetLevel(name string) error
- func Warn(msg ...interface{})
- func Warnf(msgfmt string, args ...interface{})
- type LogContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogContext ¶
type LogContext interface {
NewContext(key, value string) LogContext
Info(msg ...interface{})
Debug(msg ...interface{})
Warn(msg ...interface{})
Error(msg ...interface{})
Infof(msgfmt string, args ...interface{})
Debugf(msgfmt string, args ...interface{})
Warnf(msgfmt string, args ...interface{})
Errorf(msgfmt string, args ...interface{})
}
func Get ¶
func Get(ctx context.Context) LogContext
func New ¶
func New() LogContext
func NewContext ¶
func NewContext(key, value string) LogContext
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.